summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-05-08 07:34:53 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-05-08 07:34:53 +0000
commit176f1c1c4543794bd74f2c817dd4758a3b6489fc (patch)
treee7e81bfe69373e284da0c91a67fbd57f5436214b
parente6167e54db106a5c833610774c7daa5c9cc5dbc8 (diff)
[1.1.X] Fixed #13336 -- Corrected an incorrect example of cache header usage. Thanks to dnjuls for the report, and claudep for the patch.
Backport of r13129 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/ref/request-response.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 9dcf004149..f51e54f0cf 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -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