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.

It was agreed that this change contained too much potential ecosystem
breakage, particularly around the inability to `delete` properties off a
`Url` object. It may be re-introduced for a later release, along with
better work on ecosystem compatibility.

PR-URL: #1602
Reviewed-By: Mikeal Rogers <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Forrest L Norvell <[email protected]>
Reviewed-By: Chris Dickinson <[email protected]>
Reviewed-By: Isaac Z. Schlueter <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
  • Loading branch information
rvagg committed May 4, 2015
1 parent 290c0ee commit f34b105
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 f34b105

Please sign in to comment.