From 9e1d0708b010df272946ae867b3b55132ca34569 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Sat, 24 Jan 2015 10:41:24 -0800 Subject: [PATCH] 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. --- lib/_http_client.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/_http_client.js b/lib/_http_client.js index 96b8ce57b1e50e..9212c0a1bada1a 100644 --- a/lib/_http_client.js +++ b/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;