-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
bug 🐞Something isn't workingSomething isn't workingdiscussion 💬The right solution needs to be foundThe right solution needs to be found
Description
Issue Details
It's documented that the config redir /target temporary responds with status 302 (Found). However, there's an HTTP status code 307 which "Temporary Redirect" by definition. MDN says the difference is:
The difference between 307 and 302 is that 307 guarantees that the client will not change the request method and body when the redirected request is made. With 302, older clients incorrectly changed the method to GET. 307 and 302 responses are identical when the request method is GET.
I'm not sure if we had a reason for using 302. Should this be changed to 307? Is this change a breaking change?
Found while working on #6255
Assistance Disclosure
AI used
If AI was used, describe the extent to which it was used.
The test case was written by copilot
Metadata
Metadata
Assignees
Labels
bug 🐞Something isn't workingSomething isn't workingdiscussion 💬The right solution needs to be foundThe right solution needs to be found