Skip to content

Commit 7180597

Browse files
Revert "http: don't bother making a copy of the options"
This reverts commit 06cfff9. Reverted because it introduced a regression where (because options were modified in the later functionality) options.host and options.port would be overridden with values provided in other, supported ways. PR-URL: #1467 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 6870764 commit 7180597

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/_http_client.js

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ function ClientRequest(options, cb) {
2121

2222
if (typeof options === 'string') {
2323
options = url.parse(options);
24+
} else {
25+
options = util._extend({}, options);
2426
}
2527

2628
var agent = options.agent;

0 commit comments

Comments
 (0)