diff options
author | Gerhard Stoebich <deb2001-github@yahoo.de> | 2018-06-16 00:37:46 +0300 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2018-10-17 02:07:24 +0300 |
commit | 1cdf93ecdcba25b9a115927b2b0038c73b6f46cd (patch) | |
tree | 769d8483d1fba158f6225518e8dc5cf33b54e3f8 /doc | |
parent | 4228141012fff26dbe10d708e7beb5d12cf38c42 (diff) |
http2: pass incoming set-cookie header as array
Incoming set-cookie headers should be passed to user as array like in
http module.
Besides improving compatibility between http and http2 it avoids the
need to check if the type is an array or not in user code.
Backport-PR-URL: https://github.com/nodejs/node/pull/22850
PR-URL: https://github.com/nodejs/node/pull/21360
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/http2.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index c5c4cb4c95d..f180a7d297c 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2132,8 +2132,7 @@ For incoming headers: `proxy-authorization`, `range`, `referer`,`retry-after`, `tk`, `upgrade-insecure-requests`, `user-agent` or `x-content-type-options` are discarded. -* `set-cookie` is a string if present once or an array in case duplicates -are present. +* `set-cookie` is always an array. Duplicates are added to the array. * `cookie`: the values are joined together with '; '. * For all other headers, the values are joined together with ', '. |