Revert "http: don't bother making a copy of the options"
This reverts commit 06cfff935012ed2826cac56284cea982630cbc27. 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: https://github.com/iojs/io.js/pull/1467 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
68707648fd
commit
718059777c
@ -21,6 +21,8 @@ function ClientRequest(options, cb) {
|
||||
|
||||
if (typeof options === 'string') {
|
||||
options = url.parse(options);
|
||||
} else {
|
||||
options = util._extend({}, options);
|
||||
}
|
||||
|
||||
var agent = options.agent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user