diff options
author | Gerhard Stoebich <deb2001-github@yahoo.de> | 2018-06-15 23:37:46 +0200 |
---|---|---|
committer | Matteo Collina <hello@matteocollina.com> | 2018-07-05 14:56:54 +0200 |
commit | d4966a15cb944a07caa9ca653565fb5c585f8f0d (patch) | |
tree | b54f6d7ccd2ccc94db2c0f1910fa00b5c11f256b /doc | |
parent | e021ca28ea6dc87094e97afd3aec6fd8cecd571d (diff) | |
download | android-node-v8-d4966a15cb944a07caa9ca653565fb5c585f8f0d.tar.gz android-node-v8-d4966a15cb944a07caa9ca653565fb5c585f8f0d.tar.bz2 android-node-v8-d4966a15cb944a07caa9ca653565fb5c585f8f0d.zip |
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.
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 b320e1d632..3e1850a679 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2130,8 +2130,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 ', '. |