1
0
mirror of https://github.com/django/django.git synced 2025-02-24 17:15:03 +00:00

Fixed #13336 -- Corrected an incorrect example of cache header usage. Thanks to dnjuls for the report, and claudep for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2010-05-08 07:32:08 +00:00
parent 19826d9910
commit 0cb2ae9123

View File

@ -434,7 +434,7 @@ Setting headers
To set a header in your response, just treat it like a dictionary::
>>> response = HttpResponse()
>>> response['Pragma'] = 'no-cache'
>>> response['Cache-Control'] = 'no-cache'
.. versionadded:: 1.1