Joel Rivera  committed cb9261b

Bugfix, there was a double encoding for the PATH_INFO of the wsgienv,
this was causing an error when uri was using something different than
ISO-8859-1 and wasn't able to find the appropiate method to call
in python3 resulting in a 404.

Closing issue #1194

  • Participants
  • Parent commits 7839564
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/

                 # Python 3/WSGI u.0: all strings MUST be full unicode
                 environ['SCRIPT_NAME'] = sn
                 environ['PATH_INFO'] = path[len(sn.rstrip("/")):]
-            else:
-                # Python 3/WSGI 1.x: all strings MUST be ISO-8859-1 str
-                environ['SCRIPT_NAME'] = sn.encode('utf-8').decode('ISO-8859-1')
-                environ['PATH_INFO'] = path[len(sn.rstrip("/")):].encode('utf-8').decode('ISO-8859-1')
+            # for the wsgi 1.0 the environment is already encoded by the Gateway.
         return app(environ, start_response)