summaryrefslogtreecommitdiff
path: root/routes/middleware.py
diff options
context:
space:
mode:
Diffstat (limited to 'routes/middleware.py')
-rw-r--r--routes/middleware.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/routes/middleware.py b/routes/middleware.py
index 6c22ff6..0fa9a9e 100644
--- a/routes/middleware.py
+++ b/routes/middleware.py
@@ -119,8 +119,6 @@ class RoutesMiddleware(object):
environ['PATH_INFO'] = '/' + environ['PATH_INFO']
environ['SCRIPT_NAME'] += re.sub(r'^(.*?)/' + re.escape(newpath) + '$',
r'\1', oldpath)
- if environ['SCRIPT_NAME'].endswith('/'):
- environ['SCRIPT_NAME'] = environ['SCRIPT_NAME'][:-1]
response = self.app(environ, start_response)