Fixed #30997 -- Deprecated HttpRequest.is_ajax().

This commit is contained in:
Claude Paroz 2020-01-23 18:01:41 +01:00 committed by Mariusz Felisiak
parent 7fa0fa45c5
commit e348ab0d43
6 changed files with 31 additions and 1 deletions

View file

@ -431,6 +431,8 @@ Methods
.. method:: HttpRequest.is_ajax()
.. deprecated:: 3.1
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.