From 67d4123a5a1240200ad304631adbd406e9b9f8ea Mon Sep 17 00:00:00 2001 From: Gerhard Stoebich <18708370+Flarna@users.noreply.github.com> Date: Fri, 30 Nov 2018 09:53:57 +0100 Subject: [PATCH] doc: cookie is joined using '; ' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit document that incoming cookie headers are joined using '; '. PR-URL: https://github.com/nodejs/node/pull/24740 Reviewed-By: Ben Noordhuis Reviewed-By: Michaƫl Zasso Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Vse Mozhet Byt Reviewed-By: Rich Trott --- doc/api/http.md | 1 + doc/api/http2.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index 22fe2c43eef729..aaeb9403ff499b 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -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 diff --git a/doc/api/http2.md b/doc/api/http2.md index ad7b59d4e87147..c5a2382a479f6a 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -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