Commits

Robert Brewer  committed 2d43c7b

Fix to wsgi parsing of the URI "*".

  • Participants
  • Parent commits ab2ae63
  • Branches cherrypy-2.x

Comments (0)

Files changed (1)

File cherrypy/_cpwsgi.py

     
     resource = httptools.urljoin(environ.get('SCRIPT_NAME', ''),
                                  environ.get('PATH_INFO', ''))
-    if not (resource == "*" or resource.startswith("/")):
+    if resource == "/*":
+        resource = "*"
+    elif not resource.startswith("/"):
         resource = "/" + resource
     
     qString = environ.get('QUERY_STRING')