Changeset 158
- Timestamp:
- 04/24/05 11:25:37
- Files:
-
- trunk/cherrypy/_cphttptools.py (modified) (1 diff)
- trunk/cherrypy/test/helper.py (modified) (1 diff)
- trunk/cherrypy/test/static (added)
- trunk/cherrypy/test/static/index.html (added)
- trunk/cherrypy/test/style.css (added)
- trunk/cherrypy/test/test.py (modified) (2 diffs)
- trunk/cherrypy/test/testStaticContent.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cphttptools.py
r156 r158 306 306 307 307 path = cpg.request.path 308 if path.startswith('/'): path = path[1:] # Remove leading slash 309 if path.endswith('/'): path = path[:-1] # Remove trailing slash 308 if path.startswith('/'): 309 # Remove leading slash 310 path = path[1:] 311 if path.endswith('/'): 312 # Remove trailing slash 313 path = path[:-1] 314 path = urllib.unquote(path) # Replace quoted chars (eg %20) from url 310 315 311 316 # Handle static directories trunk/cherrypy/test/helper.py
r150 r158 141 141 modeList=[('r',''), ('tp', 'threadPool=3')] 142 142 for mode,modeConfig in modeList: 143 f =open("testsite.cfg", "w")143 f = open("testsite.cfg", "w") 144 144 f.write(extraConfig) 145 145 f.write(''' trunk/cherrypy/test/test.py
r156 r158 102 102 103 103 testList = [ 104 'testStaticContent', 104 105 'testObjectMapping', 105 106 'testFilter1', … … 167 168 print "**** THE ABOVE TESTS FAILED" 168 169 print 169 print "**** Some errors occured: please add a ticket in our Trac system (http:// trac.cherrypy.org/newticket) with the output of this test script"170 print "**** Some errors occured: please add a ticket in our Trac system (http://www.cherrypy.org/newticket) with the output of this test script" 170 171 171 172 else:

