mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30997 -- Deprecated HttpRequest.is_ajax().
This commit is contained in:
committed by
Mariusz Felisiak
parent
7fa0fa45c5
commit
e348ab0d43
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user