Skip to content

Commit b41ff76

Browse files
committed
f
1 parent 8d2530d commit b41ff76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/httpclient_next.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const SSRF_HTTPCLIENT = Symbol('SSRF_HTTPCLIENT');
66
const mainNodejsVersion = parseInt(process.versions.node.split('.')[0]);
77
let HttpClient;
88
if (mainNodejsVersion >= 20) {
9-
// urllib@4 only works on Node.js >= 18
9+
// urllib@4 only works on Node.js >= 20
1010
try {
1111
HttpClient = require('urllib4').HttpClient;
1212
debug('urllib4 enable');

test/lib/core/httpclient.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ describe('test/lib/core/httpclient.test.js', () => {
340340
stream.end('hello h2!');
341341
// console.log(headers);
342342
const mainNodejsVersion = parseInt(process.versions.node.split('.')[0]);
343-
if (mainNodejsVersion >= 18) {
343+
if (mainNodejsVersion >= 20) {
344344
assert.match(headers['user-agent'], /node\-urllib\/4\.\d+\.\d+/);
345345
} else {
346346
assert.match(headers['user-agent'], /node\-urllib\/3\.\d+\.\d+/);

0 commit comments

Comments
 (0)