diff options
Diffstat (limited to 'fixers.py')
-rw-r--r-- | fixers.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,3 +1,4 @@ +from urllib import unquote from werkzeug.wrappers import BaseResponse as Response class ScriptNameFixer(object): @@ -7,7 +8,7 @@ class ScriptNameFixer(object): self.app = app def __call__ (self, environ, start_response): - uri = environ["REQUEST_URI"] + uri = unquote(environ["REQUEST_URI"]).split('?', 1)[0] path = environ["PATH_INFO"] if uri.endswith(path): |