mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed #7583 -- Corrected the testing docs that referred to the defunct headers attribute of the response. Added a test case to validate (and document) the new behavior. Thanks to Malcolm for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7900 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b038abe1fe
commit
4aa6c57251
4 changed files with 18 additions and 3 deletions
|
|
@ -32,6 +32,12 @@ def post_view(request):
|
|||
|
||||
return HttpResponse(t.render(c))
|
||||
|
||||
def view_with_header(request):
|
||||
"A view that has a custom header"
|
||||
response = HttpResponse()
|
||||
response['X-DJANGO-TEST'] = 'Slartibartfast'
|
||||
return response
|
||||
|
||||
def raw_post_view(request):
|
||||
"""A view which expects raw XML to be posted and returns content extracted
|
||||
from the XML"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue