Skip to content

Commit

Permalink
Revert "url: significantly improve the performance of the url module"
Browse files Browse the repository at this point in the history
This reverts commit 3fd7fc4.
  • Loading branch information
rvagg committed May 3, 2015
1 parent 290c0ee commit 20a2810
Show file tree
Hide file tree
Showing 6 changed files with 529 additions and 2,786 deletions.
2 changes: 1 addition & 1 deletion lib/_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function ClientRequest(options, cb) {
OutgoingMessage.call(self);

if (typeof options === 'string') {
options = url.parse(options).toJSON();
options = url.parse(options);
} else {
options = util._extend({}, options);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/https.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ exports.Agent = Agent;

exports.request = function(options, cb) {
if (typeof options === 'string') {
options = url.parse(options).toJSON();
options = url.parse(options);
} else {
options = util._extend({}, options);
}
Expand Down
Loading

0 comments on commit 20a2810

Please sign in to comment.