forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respond with 406 when a browser is blocked by allow_browser
RFC 9110 specifies: The server MUST send an Upgrade header field in a 426 response to indicate the required protocol(s) https://httpwg.org/specs/rfc9110.html#status.426 Status 406 Not Acceptable is more appropriate because it indicates the resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request https://httpwg.org/specs/rfc9110.html#status.406 With the proactive negociation section mentionining: implicit characteristics, such as the client's network address or parts of the User-Agent field. https://httpwg.org/specs/rfc9110.html#proactive.negotiation
- Loading branch information
1 parent
93df871
commit 1dc7620
Showing
7 changed files
with
11 additions
and
10 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
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