From 06f4c38b55f82333b195630b30c3a54a044174af Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Fri, 14 Sep 2007 21:36:39 +0000 Subject: [PATCH] Case-insensitive HttpResponse headers ([6212]) broke absolute URL redirects ([6164]); this fixes the breakage. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6219 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/handlers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index 768fc14b007..21737f682f1 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -142,7 +142,7 @@ def fix_location_header(request, response): Code constructing response objects is free to insert relative paths and this function converts them to absolute paths. """ - if 'Location' in response.headers and http.get_host(request): + if 'location' in response.headers and http.get_host(request): response['Location'] = request.build_absolute_uri(response['Location']) return response