forked from netty/netty
-
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.
CorsHandler to respect http connection (keep-alive) header.
Motivation: The CorsHandler currently closes the channel when it responds to a preflight (OPTIONS) request or in the event of a short circuit due to failed validation. Especially in an environment where there's a proxy in front of the service this causes unnecessary connection churn. Modifications: CorsHandler now uses HttpUtil to determine if the connection should be closed after responding Result: Channel will stay open when the CorsHandler responds unless the client specifies otherwise or the protocol version is HTTP/1.0
- Loading branch information
1 parent
5e148d5
commit ecd6e5c
Showing
2 changed files
with
112 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