Django

Code

Changeset 6219

Show
Ignore:
Timestamp:
09/14/07 16:36:39 (1 year ago)
Author:
jacob
Message:

Case-insensitive HttpResponse headers ([6212]) broke absolute URL redirects ([6164]); this fixes the breakage.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/handlers/base.py

    r6164 r6219  
    143143    this function converts them to absolute paths. 
    144144    """ 
    145     if 'Location' in response.headers and http.get_host(request): 
     145    if 'location' in response.headers and http.get_host(request): 
    146146        response['Location'] = request.build_absolute_uri(response['Location']) 
    147147    return response