Skip to content

Commit 126f2e5

Browse files
authored
Rename __HostHttp- to __Host-Http- for improved compatibility
While a bit uglier, this makes it easier to deploy this to non-supporting browsers while not losing the characteristics that `__Host-` provides. Tested in web-platform-tests/wpt#54226. Relevant Cookie Store API changes in whatwg/cookiestore#286.
1 parent f494b11 commit 126f2e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

draft-ietf-httpbis-layered-cookies.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,10 @@ This helps developers and server operators to know that the cookie was set using
679679
a `Set-Cookie` header, and is limited in scope to HTTP requests.
680680

681681

682-
#### The "__HostHttp-" prefix
682+
#### The "__Host-Http-" prefix
683683

684684
If a cookie's name begins with a case-sensitive match for the string
685-
`__HostHttp-`, then the cookie will have been set with a `Secure` attribute, an
685+
`__Host-Http-`, then the cookie will have been set with a `Secure` attribute, an
686686
`HttpOnly` attribute, a `Path` attribute with a value of `/`, and no `Domain` attribute.
687687

688688
This helps developers and server operators to know that the cookie was set using
@@ -1305,7 +1305,7 @@ boolean _httpOnlyAllowed_, boolean _allowNonHostOnlyCookieForPublicSuffix_, and
13051305

13061306
1. If _cookie_'s name, byte-lowercased, starts with `__http-` and _cookie_ is not Http-prefix compatible, then return null.
13071307

1308-
1. If _cookie_'s name, byte-lowercased, starts with `__hosthttp-` and _cookie_ is not both Host-prefix compatible and Http-prefix compatible, then return null.
1308+
1. If _cookie_'s name, byte-lowercased, starts with `__host-http-` and _cookie_ is not both Host-prefix compatible and Http-prefix compatible, then return null.
13091309

13101310
1. If _cookie_'s name is the empty byte sequence and one of the following is true:
13111311

@@ -1315,7 +1315,7 @@ boolean _httpOnlyAllowed_, boolean _allowNonHostOnlyCookieForPublicSuffix_, and
13151315

13161316
* _cookie_'s value, byte-lowercased, starts with `__http-`, or
13171317

1318-
* _cookie_'s value, byte-lowercased, starts with `__hosthttp-`,
1318+
* _cookie_'s value, byte-lowercased, starts with `__host-http-`,
13191319

13201320
then return null.
13211321

0 commit comments

Comments
 (0)