|
|
@ -72,8 +72,9 @@ client.prototype.request = function(method, path, params, callback){ |
|
|
path: path |
|
|
path: path |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
if(this.proxy_agent) |
|
|
|
|
|
|
|
|
if(this.proxy_agent){ |
|
|
http_options["agent"] = this.proxy_agent; |
|
|
http_options["agent"] = this.proxy_agent; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if(["POST", "PUT"].indexOf(http_options["method"]) >= 0){ |
|
|
if(["POST", "PUT"].indexOf(http_options["method"]) >= 0){ |
|
|
http_options["headers"] = { |
|
|
http_options["headers"] = { |
|
|
|