From 4d0129aefb3dd7ed71ffa172663e572679f4ef0e Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Sun, 26 Apr 2020 03:29:17 +0530 Subject: [PATCH] http2: do not modify explicity set date headers Fixes: https://github.com/nodejs/node/issues/30894 Refs: https://github.com/nodejs/node/issues/29829 PR-URL: https://github.com/nodejs/node/pull/33160 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- doc/api/http2.md | 10 +++++++++ lib/internal/http2/core.js | 5 ++++- ...test-http2-removed-header-stays-removed.js | 22 +++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 test/parallel/test-http2-removed-header-stays-removed.js diff --git a/doc/api/http2.md b/doc/api/http2.md index c52b896da25217..d7397a3e72119c 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1429,6 +1429,10 @@ and will throw an error. #### `http2stream.respond([headers[, options]])` * `headers` {HTTP/2 Headers Object} @@ -1473,6 +1477,9 @@ server.on('stream', (stream) => {