Changeset 159
- Timestamp:
- 04/24/05 12:31:12
- Files:
-
- trunk/CHANGELOG.txt (modified) (1 diff)
- trunk/cherrypy/_cphttptools.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CHANGELOG.txt
r156 r159 1 * if y is a static dir make y/a?b try and serve a file named a?b (Dan) 2 * pass threadIndex to onStartThreadList functions - ticket #91 (Remi) 3 * renamed "configDict" into "configMap" for consistency - ticket #82 (Remi) 1 * Added tests about static content and httptools.redirect (Remi) 2 * Handle %20 (and others) in static content - ticket #104 (Remi) 3 * If y is a static dir make y/a?b try and serve a file named a?b (Dan) 4 * Pass threadIndex to onStartThreadList functions - ticket #91 (Remi) 5 * Renamed "configDict" into "configMap" for consistency - ticket #82 (Remi) 4 6 * Dots in requests path are now replaced by underscores - ticket #87 (Remi) 5 7 * Improved WSGI support and added example (seems to work OK) (Peter, Remi) trunk/cherrypy/_cphttptools.py
r158 r159 486 486 if path is None: 487 487 path = cpg.request.objectPath or cpg.request.path 488 if path.startswith('/'): path = path[1:] # Remove leading slash 489 if path.endswith('/'): path = path[:-1] # Remove trailing slash 488 if path.startswith('/'): 489 path = path[1:] # Remove leading slash 490 if path.endswith('/'): 491 path = path[:-1] # Remove trailing slash 490 492 491 493 if not path: … … 511 513 # Couldn't find the object: pop one from the list and try "default" 512 514 lastObj = objectPathList.pop() 513 if not isFirst:515 if (not isFirst) or (not path): 514 516 virtualPathList.insert(0, lastObj) 515 517 objectPathList.append('default')

