summaryrefslogtreecommitdiff
path: root/paste/urlparser.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-01-26 18:44:01 +0000
committerianb <devnull@localhost>2006-01-26 18:44:01 +0000
commit1e7152f6cd5ace9accb84323b8e28b2401e0b0d4 (patch)
tree0af84733562f40c570a89b0f30e6c838a45c3de0 /paste/urlparser.py
parent4122e6464bab2b2a16ad78258c24ef1f38b3d045 (diff)
downloadpaste-1e7152f6cd5ace9accb84323b8e28b2401e0b0d4.tar.gz
The last two commits fixed the wrong thing; urlparser now back to how it was, and fix httpexceptions.wsgi_application to not try to use dict methods on the header list
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 5a8ebaa..4af20ad 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):