Changes between Version 2 and Version 3 of Ticket #16040


Ignore:
Timestamp:
May 16, 2011, 10:32:49 AM (13 years ago)
Author:
Jeremy Dunck
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16040 – Description

    v2 v3  
    77If the test client requests http://www.foo.com/spam/, it is redirected to http://www.bar.com/spam/, but _handle_redirects, while parsing url into scheme and path, does not also update SERVER_NAME in extras.  This causes the 2nd request handling to be handled as though it were for http://www.foo.com/spam/ (again), causing a redirection loop.
    88
    9 I think that just as wsgi.url_scheme is updated for scheme, extra['SERVER_NAME'] should be updated for netloc.
     9I think that just as wsgi.url_scheme is updated for scheme, extra!['SERVER_NAME'] should be updated for netloc.
    1010
    1111It's debatable to me whether this is a bug or a feature -- I realize multi-tenancy is relatively unusual under Django.
Back to Top