From 08308c7111b8accc77092999ad4c8fb63807c1f4 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 5f130b02e99a36..689a1be97df258 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1409,6 +1409,10 @@ and will throw an error. #### `http2stream.respond([headers[, options]])` * `headers` {HTTP/2 Headers Object} @@ -1453,6 +1457,9 @@ server.on('stream', (stream) => {