Changes between Initial Version and Version 1 of Ticket #16040


Ignore:
Timestamp:
May 16, 2011, 10:30:33 AM (14 years ago)
Author:
Jeremy Dunck
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16040 – Description

    initial v1  
    11The default SERVER_NAME used by the test client is testserver.
    22
    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/.
     3I have a multi-tenant site serving www.foo.com and www.bar.com.  I also have a view which redirects from /spam/ to /eggs/.
    44
    5 Middlware handles the www -> m redirection, while a view handles the /spam/ -> /eggs/ redirection.
     5Middleware handles the www -> m redirection, while a view handles the /spam/ -> /eggs/ redirection.
    66
    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.
Back to Top