From 0e8b5e94703829fccb8178ccf6e092b9bf0249b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20G=C3=BCnther?= Date: Tue, 5 May 2015 15:17:18 +0200 Subject: [PATCH] Added missing brackets --- lib/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index cb3cbb4..88b209e 100644 --- a/lib/client.js +++ b/lib/client.js @@ -72,8 +72,9 @@ client.prototype.request = function(method, path, params, callback){ path: path }; - if(this.proxy_agent) + if(this.proxy_agent){ http_options["agent"] = this.proxy_agent; + } if(["POST", "PUT"].indexOf(http_options["method"]) >= 0){ http_options["headers"] = {