summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
Diffstat (limited to 'paste')
-rw-r--r--paste/deploy/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/deploy/config.py b/paste/deploy/config.py
index 363ee59..bf271a3 100644
--- a/paste/deploy/config.py
+++ b/paste/deploy/config.py
@@ -235,7 +235,7 @@ class PrefixMiddleware(object):
translate_forwarded_server=True,
force_port=None):
self.app = app
- self.prefix = prefix
+ self.prefix = prefix.rstrip('/')
self.translate_forwarded_server = translate_forwarded_server
self.regprefix = re.compile("^%s(.*)$" % self.prefix)
self.force_port = force_port