Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed May 24, 2020
1 parent ab51769 commit 9094028
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/internal/http2/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,7 @@ class Http2ServerResponse extends Stream {

getHeaders() {
const headers = ObjectCreate(null);
ObjectAssign(headers, this[kHeaders]);
return headers;
return ObjectAssign(headers, this[kHeaders]);
}

hasHeader(name) {
Expand Down

0 comments on commit 9094028

Please sign in to comment.