Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1672

Show
Ignore:
Timestamp:
06/17/07 15:24:59
Author:
fumanchu
Message:

2.x branch fix for #677 (_cpwsgi requestLine: PATH_INFO SCRIPT_NAME).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/_cpwsgi.py

    r1582 r1672  
    11"""A WSGI application interface (see PEP 333).""" 
     2 
     3try: 
     4    GeneratorExit 
     5except NameError: 
     6    GeneratorExit = None 
    27 
    38import sys 
     
    1015    """Rebuild first line of the request (e.g. "GET /path HTTP/1.0").""" 
    1116     
    12     resource = environ.get('SCRIPT_NAME', '') + environ.get('PATH_INFO', '') 
     17    resource = httptools.urljoin(environ.get('SCRIPT_NAME', ''), 
     18                                 environ.get('PATH_INFO', '')) 
    1319    if not (resource == "*" or resource.startswith("/")): 
    1420        resource = "/" + resource 
     
    6874        except (KeyboardInterrupt, SystemExit), ex: 
    6975            raise ex 
     76        except GeneratorExit: 
     77            raise 
    7078        except: 
    7179            cherrypy.log(traceback=True) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets