#12011: Test client ignores scheme on redirect -------------------------------------+-------------------------------------- Reporter: tgardner | Owner: nobody Status: new | Milestone: Component: Testing framework | Version: 1.1 Keywords: test client is_secure | Stage: Unreviewed Has_patch: 1 | Needs_docs: 0 Needs_tests: 0 | Needs_better_patch: 0 -------------------------------------+-------------------------------------- While handling redirects, the test client ignores the scheme component of the redirect Location, which means the resulting redirect always have is_secure as False. This leads to problems when using a https redirect like http://www.djangosnippets.org/snippets/85/ (the test client will think it has gone into a redirect loop rather than arrive at the proper page). I've attached a patch which sets the scheme from Location if present.
-- Ticket URL: <http://code.djangoproject.com/ticket/12011> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---