Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1332 - Specify empty domain attribute handling. #1709

Merged
merged 3 commits into from
Oct 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions draft-ietf-httpbis-rfc6265bis.md
Original file line number Diff line number Diff line change
Expand Up @@ -1250,21 +1250,24 @@ user agent MUST process the cookie-av as follows.
If the attribute-name case-insensitively matches the string "Domain", the user
agent MUST process the cookie-av as follows.

1. If the attribute-value is empty, the behavior is undefined. However, the
user agent SHOULD ignore the cookie-av entirely.
1. If the attribute-value is empty:

2. If the first character of the attribute-value string is %x2E ("."):
1. Let cookie-domain be the canonicalized request-host.
miketaylr marked this conversation as resolved.
Show resolved Hide resolved

1. Let cookie-domain be the attribute-value without the leading %x2E
Otherwise:

2. If the first character of the attribute-value string is %x2E ("."):
miketaylr marked this conversation as resolved.
Show resolved Hide resolved

1. Let cookie-domain be the attribute-value without the leading %x2E
(".") character.
miketaylr marked this conversation as resolved.
Show resolved Hide resolved

Otherwise:
Otherwise:

1. Let cookie-domain be the entire attribute-value.
2. Let cookie-domain be the entire attribute-value.

3. Convert the cookie-domain to lower case.
2. Convert the cookie-domain to lower case.

4. Append an attribute to the cookie-attribute-list with an attribute-name
3. Append an attribute to the cookie-attribute-list with an attribute-name
of Domain and an attribute-value of cookie-domain.

### The Path Attribute
Expand Down