Skip to content

Commit cc2d9fd

Browse files
tniessenaduh95
authored andcommitted
http2: rename variable to additionalPseudoHeaders
PR-URL: #60208 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Tim Perry <[email protected]>
1 parent bc3ed49 commit cc2d9fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/internal/http2/util.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ function prepareRequestHeadersArray(headers, session) {
624624
let path;
625625
let protocol;
626626

627-
// Extract the key psuedo header values from the headers array
627+
// Extract the key pseudo header values from the headers array.
628628
for (let i = 0; i < headers.length; i += 2) {
629629
if (headers[i][0] !== ':') {
630630
continue;
@@ -648,26 +648,26 @@ function prepareRequestHeadersArray(headers, session) {
648648

649649
// We then build an array of any missing pseudo headers, to prepend
650650
// default values to the given header array:
651-
const additionalPsuedoHeaders = [];
651+
const additionalPseudoHeaders = [];
652652

653653
if (method === undefined) {
654654
method = HTTP2_METHOD_GET;
655-
additionalPsuedoHeaders.push(HTTP2_HEADER_METHOD, method);
655+
additionalPseudoHeaders.push(HTTP2_HEADER_METHOD, method);
656656
}
657657

658658
const connect = method === HTTP2_METHOD_CONNECT;
659659

660660
if (!connect || protocol !== undefined) {
661661
if (authority === undefined && headers[HTTP2_HEADER_HOST] === undefined) {
662662
authority = session[kAuthority];
663-
additionalPsuedoHeaders.push(HTTP2_HEADER_AUTHORITY, authority);
663+
additionalPseudoHeaders.push(HTTP2_HEADER_AUTHORITY, authority);
664664
}
665665
if (scheme === undefined) {
666666
scheme = session[kProtocol].slice(0, -1);
667-
additionalPsuedoHeaders.push(HTTP2_HEADER_SCHEME, scheme);
667+
additionalPseudoHeaders.push(HTTP2_HEADER_SCHEME, scheme);
668668
}
669669
if (path === undefined) {
670-
additionalPsuedoHeaders.push(HTTP2_HEADER_PATH, '/');
670+
additionalPseudoHeaders.push(HTTP2_HEADER_PATH, '/');
671671
}
672672
} else {
673673
if (authority === undefined)
@@ -679,8 +679,8 @@ function prepareRequestHeadersArray(headers, session) {
679679
}
680680

681681
const rawHeaders =
682-
additionalPsuedoHeaders.length ?
683-
additionalPsuedoHeaders.concat(headers) :
682+
additionalPseudoHeaders.length ?
683+
additionalPseudoHeaders.concat(headers) :
684684
headers;
685685

686686
if (headers[kSensitiveHeaders] !== undefined) {

0 commit comments

Comments
 (0)