Changeset 1672
- Timestamp:
- 06/17/07 15:24:59
- Files:
-
- branches/cherrypy-2.x/cherrypy/_cpwsgi.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-2.x/cherrypy/_cpwsgi.py
r1582 r1672 1 1 """A WSGI application interface (see PEP 333).""" 2 3 try: 4 GeneratorExit 5 except NameError: 6 GeneratorExit = None 2 7 3 8 import sys … … 10 15 """Rebuild first line of the request (e.g. "GET /path HTTP/1.0").""" 11 16 12 resource = environ.get('SCRIPT_NAME', '') + environ.get('PATH_INFO', '') 17 resource = httptools.urljoin(environ.get('SCRIPT_NAME', ''), 18 environ.get('PATH_INFO', '')) 13 19 if not (resource == "*" or resource.startswith("/")): 14 20 resource = "/" + resource … … 68 74 except (KeyboardInterrupt, SystemExit), ex: 69 75 raise ex 76 except GeneratorExit: 77 raise 70 78 except: 71 79 cherrypy.log(traceback=True)

