summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-20 08:29:12 -0500
committerTim Graham <timograham@gmail.com>2016-12-20 08:30:45 -0500
commit7418690bf71da5ce9b6bdab6086515c2763b5820 (patch)
tree7ca4d5540411ce2b0716638e1045f5042db0b1a4 /docs
parent282f27aed5f1b3ee6502b0c243575393163f1a1b (diff)
[1.9.x] Fixed #27616 -- Fixed incorrect vary_on_headers() example.
Backport of 5e239ae907291d07a3fcf9329f83c27fa6d72981 from master
Diffstat (limited to 'docs')
-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 564a36cf13..3eabbae1b6 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -352,7 +352,7 @@ Methods
If a response varies on whether or not it's requested via AJAX and you are
using some form of caching like Django's :mod:`cache middleware
<django.middleware.cache>`, you should decorate the view with
- :func:`vary_on_headers('HTTP_X_REQUESTED_WITH')
+ :func:`vary_on_headers('X-Requested-With')
<django.views.decorators.vary.vary_on_headers>` so that the responses are
properly cached.