#5592: HttpResponseRedirect dosen't work anymore with Squid Reverse Proxy
--------------------------------------------+-------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: reopened | Component: HTTP
handling
Version: SVN | Resolution:
Keywords: redirect reverse proxy squid | Stage: Accepted
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------------------+-------------------------------
Comment (by anonymous):
After the revision 6164 django stoped to work
with a squid proxy reverse. I have a application
running in two server and a squid proxy making
load balance in front of the apaches:
I needed to make this path for squid work again
after the revison 6164.
Thanks
--------patch----------
from django.core.handlers import base
def fix_location_header(request, response):
"""
Path for correct squid proxy reverse after django rev.6164.
---Removed---
if 'Location' in response and request.get_host():
response['Location'] =
request.build_absolute_uri(response['Location'])
"""
return response
base.fix_location_header = fix_location_header
--------end----------
--
Ticket URL: <http://code.djangoproject.com/ticket/5592#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---