From 1c593c8192081741b20610b78bccdadc6a27a8ec 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 bbddbb295d5a66..e07a4d7abd9f24 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1594,6 +1594,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 2cd8f213aa089e..0da4c63d676864 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2288,7 +2288,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