Changes between Version 1 and Version 2 of Ticket #16040
- Timestamp:
- May 16, 2011, 10:30:55 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16040 – Description
v1 v2 3 3 I have a multi-tenant site serving www.foo.com and www.bar.com. I also have a view which redirects from /spam/ to /eggs/. 4 4 5 Middleware handles the www -> mredirection, while a view handles the /spam/ -> /eggs/ redirection.5 Middleware handles the domain redirection, while a view handles the /spam/ -> /eggs/ redirection. 6 6 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.