diff --git a/lib/http.js b/lib/http.js index ed30793..382a887 100644 --- a/lib/http.js +++ b/lib/http.js @@ -97,7 +97,11 @@ var HTTPObject = function(engine) { }; this.setProxy = function(proxy) { - this.proxy = proxy; + for (var k in proxy) { + if (k in this.proxy) { + this.proxy[k] = proxy[k]; + } + } return this; };