mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #35784 -- Added support for preserving the HTTP request method in HttpResponseRedirectBase.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
This commit is contained in:
@@ -294,6 +294,16 @@ Requests and Responses
|
||||
* The new :meth:`.HttpRequest.get_preferred_type` method can be used to query
|
||||
the preferred media type the client accepts.
|
||||
|
||||
* The new ``preserve_request`` argument for
|
||||
:class:`~django.http.HttpResponseRedirect` and
|
||||
:class:`~django.http.HttpResponsePermanentRedirect`
|
||||
determines whether the HTTP status codes 302/307 or 301/308 are used,
|
||||
respectively.
|
||||
|
||||
* The new ``preserve_request`` argument for
|
||||
:func:`~django.shortcuts.redirect` allows to instruct the user agent to reuse
|
||||
the HTTP method and body during redirection using specific status codes.
|
||||
|
||||
Security
|
||||
~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user