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
(landed by @rvagg)

PR-URL: #1561
Reviewed-By: Domenic Denicola <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
  • Loading branch information
petkaantonov authored and rvagg committed May 2, 2015
1 parent 57c4cc2 commit 3fd7fc4
Show file tree
Hide file tree
Showing 6 changed files with 2,786 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 3fd7fc4

Please sign in to comment.