mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 15:32:15 +00:00
http: don't bother making a copy of the options
Alternative to https://github.com/iojs/io.js/pull/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: https://github.com/iojs/io.js/pull/593 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
This commit is contained in:
parent
55c222ceba
commit
06cfff9350
@ -21,8 +21,6 @@ function ClientRequest(options, cb) {
|
|||||||
|
|
||||||
if (util.isString(options)) {
|
if (util.isString(options)) {
|
||||||
options = url.parse(options);
|
options = url.parse(options);
|
||||||
} else {
|
|
||||||
options = util._extend({}, options);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var agent = options.agent;
|
var agent = options.agent;
|
||||||
|
Loading…
Reference in New Issue
Block a user