Changes between Initial Version and Version 1 of Ticket #16040
- Timestamp:
- May 16, 2011, 10:30:33 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16040 – Description
initial v1 1 1 The default SERVER_NAME used by the test client is testserver. 2 2 3 I have a multi-tenant site serving www.foo.com and m.foo.com. I also have a view which redirects from /spam/ to /eggs/.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 Middl ware handles the www -> m redirection, while a view handles the /spam/ -> /eggs/ redirection.5 Middleware handles the www -> m 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.