From a5830f7e9f65cad5647430fb22b614f69bbf7392 Mon Sep 17 00:00:00 2001 From: Vadim Antonov Date: Wed, 24 Oct 2012 11:40:56 -0700 Subject: [PATCH] Allow to pass agent to the http/https node libraries based on the API: http://nodejs.org/api/http.html#http_http_request_options_callback http://nodejs.org/api/https.html#https_https_request_options_callback --- lib/restler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/restler.js b/lib/restler.js index bf6cc57..140f792 100644 --- a/lib/restler.js +++ b/lib/restler.js @@ -83,6 +83,7 @@ function Request(uri, options) { path: this._fullPath(), method: this.options.method, headers: this.headers + agent: this.options.agent, }); this._makeRequest();