summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorLorenzo Peña <lorinkoz@gmail.com>2024-11-14 19:53:49 +0100
committerGitHub <noreply@github.com>2024-11-14 15:53:49 -0300
commit91c879eda595c12477bbfa6f51115e88b75ddf88 (patch)
tree544ce7be64975158b6d3f0d0a8ea693ab7188aca /docs/releases
parent8590d05d44a4f3df56d988229e43d66c37df79da (diff)
Fixed #35784 -- Added support for preserving the HTTP request method in HttpResponseRedirectBase.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/5.2.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/releases/5.2.txt b/docs/releases/5.2.txt
index 88a1daa45d..0ee4868246 100644
--- a/docs/releases/5.2.txt
+++ b/docs/releases/5.2.txt
@@ -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
~~~~~~~~