From ccdb9ac58ba6c71551e1dc6e5ae1b2ac14c81d8c Mon Sep 17 00:00:00 2001 From: ianb Date: Thu, 26 Jan 2006 18:04:58 +0000 Subject: Fixed mis-used redirect when adding trailing slash --- paste/urlparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'paste/urlparser.py') 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): -- cgit v1.2.1