-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid parsing of multiple Set-Cookie headers (#1787)
* Update the copyright year in some source files * Fix invalid parsing of multiple Set-Cookie headers There are two different cookie headers: 'Cookie' header and 'Set-Cookie' header, but in tempesta they have the same ID, which is less then TFW_HTTP_HDR_NONSINGULAR. So both this headers processed as a singular headers for HTTP1 and as a non-signular headers for HTTP2, because of known exception in appropriate RFS. But according to RFS 7230 3.2.2 'Set-Cookie' header also should be processed as a non-signular header for HTTP1. So add new ID for 'Set-Cookie' header which is greater then TFW_HTTP_HDR_NONSINGULAR to provide it's procession as a non-signular header both for HTTP1 and HTTP2. Appropriate unit test also implemented for this case. Closes #1690
- Loading branch information
1 parent
a9c9bd6
commit ec339e5
Showing
4 changed files
with
89 additions
and
11 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