redirect defaults to 303

This commit is contained in:
David Lord 2026-01-24 16:50:54 -08:00
parent eb58d862cc
commit eca5fd1dfd
No known key found for this signature in database
GPG key ID: 43368A7AA8CC5926
4 changed files with 14 additions and 3 deletions

View file

@ -16,6 +16,11 @@ Unreleased
deprecation period. :issue:`5815`
- ``template_filter``, ``template_test``, and ``template_global`` decorators
can be used without parentheses. :issue:`5729`
- ``redirect`` returns a ``303`` status code by default instead of ``302``.
This tells the client to always switch to ``GET``, rather than only
switching ``POST`` to ``GET``. This preserves the current behavior of
``GET`` and ``POST`` redirects, and is also correct for frontend libraries
such as HTMX. :issue:`5895`
Version 3.1.2