Changeset 1668
- Timestamp:
- 06/16/07 18:35:25
- Files:
-
- trunk/cherrypy/_cptools.py (modified) (1 diff)
- trunk/cherrypy/lib/static.py (modified) (1 diff)
- trunk/cherrypy/test/test_static.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cptools.py
r1667 r1668 430 430 _d.basic_auth = Tool('on_start_resource', auth.basic_auth) 431 431 _d.digest_auth = Tool('on_start_resource', auth.digest_auth) 432 _d.trailing_slash = Tool('before_handler', cptools.trailing_slash )432 _d.trailing_slash = Tool('before_handler', cptools.trailing_slash, priority=60) 433 433 _d.flatten = Tool('before_finalize', cptools.flatten) 434 434 _d.accept = Tool('on_start_resource', cptools.accept) trunk/cherrypy/lib/static.py
r1402 r1668 180 180 if not handled: 181 181 # Check for an index file if a folder was requested. 182 if index and filename[-1] in (r"\/"):182 if index: 183 183 handled = _attempt(os.path.join(filename, index), content_types) 184 if handled: 185 cherrypy.request.is_index = filename[-1] in (r"\/") 184 186 return handled 185 187 trunk/cherrypy/test/test_static.py
r1514 r1668 110 110 # The same page should be returned even if redirected. 111 111 self.getPage("/docroot") 112 self.assertStatus('200 OK') 113 self.assertHeader('Content-Type', 'text/html') 114 self.assertBody('Hello, world\r\n') 112 self.assertStatus((302, 303)) 115 113 116 114 # Check that we get an error if no .file or .dir

