From 25e5164cf11abde599630f53e9b634462bc6064b 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 f22da69e073702..58999f840f756d 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