http: don't bother making a copy of the options
authorJonathan Ong <jonathanong@users.noreply.github.com>
Sat, 24 Jan 2015 18:41:24 +0000 (10:41 -0800)
committerStephen Belanger <admin@stephenbelanger.com>
Sat, 24 Jan 2015 21:05:27 +0000 (13:05 -0800)
commit06cfff935012ed2826cac56284cea982630cbc27
tree8e9392c2fe06a5267dc11ec61ff98a44168f1949
parent55c222ceba8e2b22fb5639082906faace520ec4e
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>
lib/_http_client.js