Skip to content

Commit 25e5164

Browse files
FlarnaBridgeAR
authored andcommitted
doc: cookie is joined using '; '
document that incoming cookie headers are joined using '; '. PR-URL: #24740 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent ecbe616 commit 25e5164

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
@@ -1598,6 +1598,7 @@ header name:
15981598
`last-modified`, `location`, `max-forwards`, `proxy-authorization`, `referer`,
15991599
`retry-after`, or `user-agent` are discarded.
16001600
* `set-cookie` is always an array. Duplicates are added to the array.
1601+
* For duplicate `cookie` headers, the values are joined together with '; '.
16011602
* For all other headers, the values are joined together with ', '.
16021603

16031604
### message.httpVersion

doc/api/http2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2297,7 +2297,7 @@ For incoming headers:
22972297
`upgrade-insecure-requests`, `user-agent` or `x-content-type-options` are
22982298
discarded.
22992299
* `set-cookie` is always an array. Duplicates are added to the array.
2300-
* `cookie`: the values are joined together with '; '.
2300+
* For duplicate `cookie` headers, the values are joined together with '; '.
23012301
* For all other headers, the values are joined together with ', '.
23022302

23032303
```js

0 commit comments

Comments
 (0)