#17092: Internal Redirects with Apache
--------------------------------------+--------------------
     Reporter:  anonymous             |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  HTTP handling         |    Version:  1.3
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 The CGI specification allows for a CGI script to return a 'Location'
 header
 which refers to a location within the local web server. In Apache this is
 honoured when the Status returned by the CGI script is also 200. mod_wsgi
 also supports this. See
 http://code.google.com/p/modwsgi/issues/detail?id=14.

 [6164] added the host to all redirects. While this is good for 99.9% of
 use cases, this makes these sorts of internal redirects impossible with
 django. Would it be reasonable to change fix_location_header to only add
 the host if the response code is not 200? Or we could add a variable such
 as Response.add_host_to_location that defaults to True that could be used
 to control this behavior on a per response basis. I'd be happy to work on
 the path for this once I hear back which implementation would be more
 likely to be accepted.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17092>
Django <https://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.

Reply via email to