Skip to content

Commit 06cfff9

Browse files
jonathanongQard
authored andcommitted
http: don't bother making a copy of the options
Alternative to #592. The `options` object is never overwritten, so making a copy is not necessary. This solves issues such as https://github.com/petkaantonov/urlparser/issues where the options object is created from a constructor. PR-URL: #593 Reviewed-By: Stephen Belanger <[email protected]>
1 parent 55c222c commit 06cfff9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/_http_client.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ function ClientRequest(options, cb) {
2121

2222
if (util.isString(options)) {
2323
options = url.parse(options);
24-
} else {
25-
options = util._extend({}, options);
2624
}
2725

2826
var agent = options.agent;

0 commit comments

Comments
 (0)