Skip to content

Commit

Permalink
doc: cookie is joined using '; '
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Flarna authored and BridgeAR committed Dec 5, 2018
1 parent ecbe616 commit 25e5164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/api/http.md
Expand Up @@ -1598,6 +1598,7 @@ header name:
`last-modified`, `location`, `max-forwards`, `proxy-authorization`, `referer`,
`retry-after`, or `user-agent` are discarded.
* `set-cookie` is always an array. Duplicates are added to the array.
* For duplicate `cookie` headers, the values are joined together with '; '.
* For all other headers, the values are joined together with ', '.

### message.httpVersion
Expand Down
2 changes: 1 addition & 1 deletion doc/api/http2.md
Expand Up @@ -2297,7 +2297,7 @@ For incoming headers:
`upgrade-insecure-requests`, `user-agent` or `x-content-type-options` are
discarded.
* `set-cookie` is always an array. Duplicates are added to the array.
* `cookie`: the values are joined together with '; '.
* For duplicate `cookie` headers, the values are joined together with '; '.
* For all other headers, the values are joined together with ', '.

```js
Expand Down

0 comments on commit 25e5164

Please sign in to comment.