From 06cfff935012ed2826cac56284cea982630cbc27 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. PR-URL: /~https://github.com/iojs/io.js/pull/593 Reviewed-By: Stephen Belanger --- 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;