summaryrefslogtreecommitdiff
path: root/fixers.py
diff options
context:
space:
mode:
Diffstat (limited to 'fixers.py')
-rw-r--r--fixers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fixers.py b/fixers.py
index deded63..822f6b8 100644
--- a/fixers.py
+++ b/fixers.py
@@ -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):