Issue #35 resolved

static file can't find

Anonymous created an issue

I put gif file into path(testdata)

and visit http://127.0.0.1:8080/testdata/logo_tlq.gif: Traceback (most recent call last): File "C:\Python23\Lib\site-packages\cherrypy_cphttptools.py", line 113, in doRequest handleRequest(wfile) File "C:\Python23\Lib\site-packages\cherrypy_cphttptools.py", line 283, in handleRequest func, objectPathList, virtualPathList = mapPathToObject() File "C:\Python23\Lib\site-packages\cherrypy_cphttptools.py", line 372, in mapPathToObject raise cperror.NotFound # We didn't find anything NotFound

log: 2004/11/23 00:58:20 CONFIG INFO Server parameters: 2004/11/23 00:58:20 CONFIG INFO logToScreen: 1 2004/11/23 00:58:20 CONFIG INFO logFile: 2004/11/23 00:58:20 CONFIG INFO protocolVersion: HTTP/1.0 2004/11/23 00:58:20 CONFIG INFO socketHost: 2004/11/23 00:58:20 CONFIG INFO socketPort: 8080 2004/11/23 00:58:20 CONFIG INFO socketFile: 2004/11/23 00:58:20 CONFIG INFO reverseDNS: 0 2004/11/23 00:58:20 CONFIG INFO socketQueueSize: 5 2004/11/23 00:58:20 CONFIG INFO processPool: 0 2004/11/23 00:58:20 CONFIG INFO threadPool: 2 2004/11/23 00:58:20 CONFIG INFO threading: 0 2004/11/23 00:58:20 CONFIG INFO forking: 0 2004/11/23 00:58:20 CONFIG INFO sslKeyFile: 2004/11/23 00:58:20 CONFIG INFO sessionStorageType: ram 2004/11/23 00:58:20 CONFIG INFO sessionTimeout: 60 min 2004/11/23 00:58:20 CONFIG INFO cleanUpDelay: 60 min 2004/11/23 00:58:20 CONFIG INFO sessionCookieName: CherryPySession 2004/11/23 00:58:20 CONFIG INFO sessionStorageFileDir: 2004/11/23 00:58:20 CONFIG INFO staticContent: [('testdata', 'testdata'), (' go_tlq.gif', 'testdata/logo_tlq.gif')] 2004/11/23 00:58:20 HTTP INFO Serving HTTP on socket: ('', 8080) 2004/11/23 00:58:25 HTTP INFO 127.0.0.1 - GET /testdata/logo_tlq.gif HTTP/1.1 2004/11/23 00:58:30 HTTP INFO 127.0.0.1 - GET /logo_tlq.gif HTTP/1.1 2004/11/23 00:58:33 HTTP INFO 127.0.0.1 - GET /logo_tlq.gif HTTP/1.1 2004/11/23 00:59:33 HTTP INFO 127.0.0.1 - GET /logo_tlq.gif HTTP/1.1 2004/11/23 00:59:34 HTTP INFO 127.0.0.1 - GET /logo_tlq.gif HTTP/1.1 2004/11/23 00:59:35 HTTP INFO 127.0.0.1 - GET /logo_tlq.gif HTTP/1.1

Reported by lihuimail@gmail.com

Comments (2)

  1. Log in to comment