mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #4476 -- Added a `follow
` option to the test client request methods. This implements browser-like behavior for the test client, following redirect chains when a 30X response is received. Thanks to Marc Fargas and Keith Bussell for their work on this.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e20f09c2d0
commit
e735fe7160
7 changed files with 298 additions and 76 deletions
|
@ -58,4 +58,4 @@ def check_session_view(request):
|
|||
|
||||
def request_methods_view(request):
|
||||
"A view that responds with the request method"
|
||||
return HttpResponse('request method: %s' % request.method)
|
||||
return HttpResponse('request method: %s' % request.method)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue