summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2020-02-03 12:43:11 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-02-04 12:21:48 +0100
commit469bf2db15597f2c87cb0f8f64132056d2467f15 (patch)
tree0a487232b5a4d89ed8361f25b6c8b4bf97769f9f /docs
parent85cb59cba9f5d3ba09281f7e18b2a3d4368378c9 (diff)
Fixed #31210 -- Doc'd how to reproduce HttpRequest.is_ajax() in release notes.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.1.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt
index aaf64b2e2b..4a165156e1 100644
--- a/docs/releases/3.1.txt
+++ b/docs/releases/3.1.txt
@@ -482,6 +482,10 @@ Miscellaneous
the new :meth:`.HttpRequest.accepts` method if your code depends on the
client ``Accept`` HTTP header.
+ If you are writing your own AJAX detection method, ``request.is_ajax()`` can
+ be reproduced exactly as
+ ``request.headers.get('x-requested-with') == 'XMLHttpRequest'``.
+
* The encoding format of cookies values used by
:class:`~django.contrib.messages.storage.cookie.CookieStorage` is different
from the format generated by older versions of Django. Support for the old