Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2062,8 +2062,9 @@ class ClientHttp2Session extends Http2Session {
const onConnect = reqAsync.bind(
requestOnConnect.bind(stream, headersList, options));
if (this.connecting) {
if (this[kPendingRequestCalls] !== null) {
this[kPendingRequestCalls].push(onConnect);
const pendingCalls = this[kPendingRequestCalls];
if (pendingCalls !== null) {
pendingCalls[pendingCalls.length] = onConnect;
} else {
this[kPendingRequestCalls] = [onConnect];
this.once('connect', () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/http2/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ function buildNgHeaderString(arrayOrMap,
} else if (singles.includes(key)) {
throw new ERR_HTTP2_HEADER_SINGLE_VALUE(key);
} else {
singles.push(key);
singles[singles.length] = key;
}
}
const flags = neverIndex.length !== 0 && neverIndex.includes(key) ?
Expand Down
Loading