summaryrefslogtreecommitdiff
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:41 -0500
commit54cce02ddd8037554c88f0becffe9bc4d33093e7 (patch)
tree228b54ee78b2afce3d6dffa8585542985410b343
parent2f95b91bbea99a9b7cfa54998d47a14e89c8f6e4 (diff)
downloaddjango-54cce02ddd8037554c88f0becffe9bc4d33093e7.tar.gz
[1.10.x] Fixed #27616 -- Fixed incorrect vary_on_headers() example.
Backport of 5e239ae907291d07a3fcf9329f83c27fa6d72981 from master
-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 dc347ab4f7..325c8412d9 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -366,7 +366,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.