-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Request Cookies When Receiving Multiple
Previously, when parsing the "Cookie" header for an HTTP request, the header was parsed as if it was the "Set-Cookie" header of an HTTP response. As a result, the CookieJar object of a Request object would never contain more than a single cookie, with any additional cookies being stored in Cookie.ext of the first cookie. This commit fixes this issue by implementing a CookieJar.addFromRaw method which adds multiple Cookies to a CookieJar from a string. HeadersStep::apply now uses CookieJar.addFromRaw instead of Cookie::fromRaw.
- Loading branch information
Showing
3 changed files
with
30 additions
and
3 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