Skip to content

Commit e60e517

Browse files
committed
fixup! lib: remove usage of url.parse
1 parent a2f28c5 commit e60e517

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/_http_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function ClientRequest(input, options, cb) {
102102

103103
if (typeof input === 'string') {
104104
const urlStr = input;
105-
input = urlToOptions(new URL(urlStr));
105+
input = urlToHttpOptions(new URL(urlStr));
106106
} else if (input && input[searchParamsSymbol] &&
107107
input[searchParamsSymbol][searchParamsSymbol]) {
108108
// url.URL instance

lib/https.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function request(...args) {
300300

301301
if (typeof args[0] === 'string') {
302302
const urlStr = ArrayPrototypeShift(args);
303-
options = urlToOptions(new URL(urlStr));
303+
options = urlToHttpOptions(new URL(urlStr));
304304
} else if (args[0] && args[0][searchParamsSymbol] &&
305305
args[0][searchParamsSymbol][searchParamsSymbol]) {
306306
// url.URL instance

0 commit comments

Comments
 (0)