-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With strict slashes enabled and the route defined with a trailing slash e.g. `/a/` a request to `/a` currently results in a 301 response to redirect to `/a/`. This is good for GET and HEAD requests, but problematic for other verbs as clients will typically treat a 301 response as meaning redirect as a GET verb as noted in RFC 2616 section-10.3.2 (RFC 2616 stated this was erroneous, and then RFC 7231 allowed this behaviour). RFC 7538 later introduced a 308 code to work as 301 was originally intended. As 308 is now widely supported, 301 can be changed to 308.
- Loading branch information
Showing
4 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters