-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve leading '.' prefix for 'Domain'.
A leading `.` in the `Domain` of a cookie was previously removed during parsing. While this was correct behavior, as stipulated by the RFC, it raised an incongruity with manually set `Domain`s (via `set_domain()`, and `CookieBuilder::domain()`), which did not strip a leading `.`. This commit resolves this incongruity by always preserving a leading `.` and omitting instead only when the `Domain` value is read. This preserves the original behavior during parsing but changes the observed behavior for manually set `Domain`s with a leading dot. Resolves #207.
- Loading branch information
1 parent
d5ce056
commit 87d0396
Showing
2 changed files
with
39 additions
and
8 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