Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
rexagod committed May 9, 2020
commit 92d94811bc6fb8fd4b48e46556ae34cf2bd5bfc4
5 changes: 4 additions & 1 deletion lib/internal/http2/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const {
ArrayIsArray,
Boolean,
Object,
ObjectAssign,
ObjectCreate,
ObjectKeys,
Expand Down Expand Up @@ -552,7 +553,9 @@ class Http2ServerResponse extends Stream {
}

getHeaders() {
return this[kHeaders];
const headers = Object.create(null);
Object.assign(headers, this[kHeaders]);
return headers;
}

hasHeader(name) {
Expand Down