Skip to content
Closed
Changes from 2 commits
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
4 changes: 4 additions & 0 deletions lib/internal/http2/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ class Http2ServerRequest extends Readable {
closed: false,
didRead: false,
};
// headers in HTTP/1 are not initialized using Object.create(null)
// which, although preferable, would simply break too much code.
// Ergo, header initialization using Object.create(null) in HTTP/2
// is intentional.
this[kHeaders] = headers;
this[kRawHeaders] = rawHeaders;
this[kTrailers] = {};
Expand Down