summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-18 11:34:11 -0500
committerTim Graham <timograham@gmail.com>2014-12-18 11:34:11 -0500
commitc2d8da7555e3fef30c43f3ffe2e8963ca1f9fdd5 (patch)
treed8f51fa88767c58e12f00ed11dace87ad750ec4d
parent47912d9f2b8f55044aef5b8ed9b006e8dd8ce976 (diff)
[1.7.x] Corrected indentation in docs to prevent inadvertent blockquote.
-rw-r--r--docs/ref/request-response.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 55afcd7c30..d67aae62e0 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -308,11 +308,11 @@ Methods
.. method:: HttpRequest.is_ajax()
- Returns ``True`` if the request was made via an ``XMLHttpRequest``, by
- checking the ``HTTP_X_REQUESTED_WITH`` header for the string
- ``'XMLHttpRequest'``. Most modern JavaScript libraries send this header.
- If you write your own XMLHttpRequest call (on the browser side), you'll
- have to set this header manually if you want ``is_ajax()`` to work.
+ Returns ``True`` if the request was made via an ``XMLHttpRequest``, by
+ checking the ``HTTP_X_REQUESTED_WITH`` header for the string
+ ``'XMLHttpRequest'``. Most modern JavaScript libraries send this header.
+ If you write your own XMLHttpRequest call (on the browser side), you'll
+ have to set this header manually if you want ``is_ajax()`` to work.
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