Skip to content

Commit 20a2810

Browse files
committed
Revert "url: significantly improve the performance of the url module"
This reverts commit 3fd7fc4.
1 parent 290c0ee commit 20a2810

File tree

6 files changed

+529
-2786
lines changed

6 files changed

+529
-2786
lines changed

lib/_http_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function ClientRequest(options, cb) {
2020
OutgoingMessage.call(self);
2121

2222
if (typeof options === 'string') {
23-
options = url.parse(options).toJSON();
23+
options = url.parse(options);
2424
} else {
2525
options = util._extend({}, options);
2626
}

lib/https.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ exports.Agent = Agent;
107107

108108
exports.request = function(options, cb) {
109109
if (typeof options === 'string') {
110-
options = url.parse(options).toJSON();
110+
options = url.parse(options);
111111
} else {
112112
options = util._extend({}, options);
113113
}

0 commit comments

Comments
 (0)