Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Case-insensitive HttpResponse headers ([6212]) broke absolute URL red…

…irects ([6164]); this fixes the breakage.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 06f4c38b55f82333b195630b30c3a54a044174af 1 parent f180d95
Jacob Kaplan-Moss authored September 14, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/handlers/base.py
2  django/core/handlers/base.py
@@ -142,7 +142,7 @@ def fix_location_header(request, response):
142 142
     Code constructing response objects is free to insert relative paths and
143 143
     this function converts them to absolute paths.
144 144
     """
145  
-    if 'Location' in response.headers and http.get_host(request):
  145
+    if 'location' in response.headers and http.get_host(request):
146 146
         response['Location'] = request.build_absolute_uri(response['Location'])
147 147
     return response
148 148
 

0 notes on commit 06f4c38

Please sign in to comment.
Something went wrong with that request. Please try again.