﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12607	"django.test.client.Client changes the HTTP method to ""GET"" when doing a redirect."	pbiggar	nobody	"With the code:

Client().post(path, {}, follow=True)

where path causes a redirect, the HTTP verb will be changed to a GET. This is probably due to line 949 of http://code.djangoproject.com/svn/django/trunk/django/test/client.py. _handle_redirect is called from post(), put(), delete() etc, even though it redirects by calling get().

(My knowledge of HTTP is hazy, but it seems wrong to change this.)

Workaround: make sure tests dont redirect (which probably means avoid the automatic redirection of leaving a '/' off the end of paths).

I'm experiencing this with Django 1.1, but it looks like its still present in svn.


"		closed	Testing framework	1.2-alpha		invalid	get redirect _handle_redirect		Unreviewed	0	0	0	0	0	0
