Skip to content

Commit 1c593c8

Browse files
FlarnaBethGriggs
authored andcommitted
doc: cookie is joined using '; '
document that incoming cookie headers are joined using '; '. PR-URL: #24740 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 37047fc commit 1c593c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/api/http.md

+1
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,7 @@ header name:
15941594
`last-modified`, `location`, `max-forwards`, `proxy-authorization`, `referer`,
15951595
`retry-after`, or `user-agent` are discarded.
15961596
* `set-cookie` is always an array. Duplicates are added to the array.
1597+
* For duplicate `cookie` headers, the values are joined together with '; '.
15971598
* For all other headers, the values are joined together with ', '.
15981599

15991600
### message.httpVersion

doc/api/http2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ For incoming headers:
22882288
`upgrade-insecure-requests`, `user-agent` or `x-content-type-options` are
22892289
discarded.
22902290
* `set-cookie` is always an array. Duplicates are added to the array.
2291-
* `cookie`: the values are joined together with '; '.
2291+
* For duplicate `cookie` headers, the values are joined together with '; '.
22922292
* For all other headers, the values are joined together with ', '.
22932293

22942294
```js

0 commit comments

Comments
 (0)