Browse Source

Added missing brackets

pull/14/head
Erik Günther 11 years ago
parent
commit
0e8b5e9470
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/client.js

+ 2
- 1
lib/client.js View File

@ -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"] = {


Loading…
Cancel
Save