Browse files

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

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f180d95 commit 06f4c38b55f82333b195630b30c3a54a044174af @jacobian jacobian committed Sep 14, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/handlers/
@@ -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

0 comments on commit 06f4c38

Please sign in to comment.