@@ -607,7 +607,7 @@ function requestOnConnect(headers, options) { |
|
|
607 |
607 |
// 4. if specified, options.silent must be a boolean |
608 |
608 |
// |
609 |
609 |
// Also sets the default priority options if they are not set. |
610 |
|
-const validatePriorityOptions = hideStackFrames((options) => { |
|
610 |
+const setAndValidatePriorityOptions = hideStackFrames((options) => { |
611 |
611 |
if (options.weight === undefined) { |
612 |
612 |
options.weight = NGHTTP2_DEFAULT_WEIGHT; |
613 |
613 |
} else if (typeof options.weight !== 'number') { |
@@ -1451,7 +1451,7 @@ class ClientHttp2Session extends Http2Session { |
|
|
1451 |
1451 |
throw new ERR_HTTP2_CONNECT_PATH(); |
1452 |
1452 |
} |
1453 |
1453 |
|
1454 |
|
-validatePriorityOptions(options); |
|
1454 |
+setAndValidatePriorityOptions(options); |
1455 |
1455 |
|
1456 |
1456 |
if (options.endStream === undefined) { |
1457 |
1457 |
// For some methods, we know that a payload is meaningless, so end the |
@@ -1839,7 +1839,7 @@ class Http2Stream extends Duplex { |
|
|
1839 |
1839 |
|
1840 |
1840 |
assertIsObject(options, 'options'); |
1841 |
1841 |
options = { ...options }; |
1842 |
|
-validatePriorityOptions(options); |
|
1842 |
+setAndValidatePriorityOptions(options); |
1843 |
1843 |
|
1844 |
1844 |
const priorityFn = submitPriority.bind(this, options); |
1845 |
1845 |
|