Skip to content

Commit

Permalink
url: significantly improve the performance of the url module
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed Apr 29, 2015
1 parent f9b226c commit bf07d13
Show file tree
Hide file tree
Showing 6 changed files with 2,787 additions and 529 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);
options = url.parse(options).toJSON();
} 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);
options = url.parse(options).toJSON();
} else {
options = util._extend({}, options);
}
Expand Down
Loading

0 comments on commit bf07d13

Please sign in to comment.