Changes between Version 2 and Version 3 of Ticket #16040
- Timestamp:
- May 16, 2011, 10:32:49 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16040 – Description
v2 v3 7 7 If 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. 8 8 9 I think that just as wsgi.url_scheme is updated for scheme, extra ['SERVER_NAME'] should be updated for netloc.9 I think that just as wsgi.url_scheme is updated for scheme, extra!['SERVER_NAME'] should be updated for netloc. 10 10 11 11 It's debatable to me whether this is a bug or a feature -- I realize multi-tenancy is relatively unusual under Django.