Browse Source

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>
v1.8.0-commit
Jonathan Ong 10 years ago
committed by Stephen Belanger
parent
commit
06cfff9350
  1. 2
      lib/_http_client.js

2
lib/_http_client.js

@ -21,8 +21,6 @@ function ClientRequest(options, cb) {
if (util.isString(options)) {
options = url.parse(options);
} else {
options = util._extend({}, options);
}
var agent = options.agent;

Loading…
Cancel
Save