summaryrefslogtreecommitdiff
path: root/paste/urlparser.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-01-26 18:04:58 +0000
committerianb <devnull@localhost>2006-01-26 18:04:58 +0000
commitccdb9ac58ba6c71551e1dc6e5ae1b2ac14c81d8c (patch)
tree81eec6cea6e19f8e6e68b01fbc8a807a603e18cd /paste/urlparser.py
parent8bfe1afc7c5a7ab80f722ada73019424a4b63819 (diff)
downloadpaste-ccdb9ac58ba6c71551e1dc6e5ae1b2ac14c81d8c.tar.gz
Fixed mis-used redirect when adding trailing slash
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r--paste/urlparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py
index 4af20ad..625d326 100644
--- a/paste/urlparser.py
+++ b/paste/urlparser.py
@@ -219,7 +219,7 @@ class URLParser(object):
exc = httpexceptions.HTTPMovedPermanently(
'The resource has moved to %s - you should be redirected '
'automatically.''' % url,
- headers=[('location', url)])
+ headers={'location', url})
return exc.wsgi_application(environ, start_response)
def find_file(self, environ, base_filename):
@@ -457,7 +457,7 @@ class StaticURLParser(object):
exc = httpexceptions.HTTPMovedPermanently(
'The resource has moved to %s - you should be redirected '
'automatically.''' % url,
- headers=[('location', url)])
+ headers={'location', url})
return exc.wsgi_application(environ, start_response)
def not_found(self, environ, start_response, debug_message=None):