mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #31210 -- Doc'd how to reproduce HttpRequest.is_ajax() in release notes.
This commit is contained in:
parent
85cb59cba9
commit
469bf2db15
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user