|
|
|
@ -3,7 +3,6 @@ var https = require("https"); |
|
|
|
var json = require("./json"); |
|
|
|
var url = require("url"); |
|
|
|
var util = require("util"); |
|
|
|
var _ = require('lodash'); |
|
|
|
|
|
|
|
/*section: client |
|
|
|
*comment: | |
|
|
|
@ -67,12 +66,14 @@ client.prototype.request = function(method, path, params, callback){ |
|
|
|
"query": query, |
|
|
|
}); |
|
|
|
|
|
|
|
var http_options = _.assign({ |
|
|
|
var http_options = { |
|
|
|
hostname: this.api_host, |
|
|
|
port: 443, |
|
|
|
method: method.toUpperCase(), |
|
|
|
path: path |
|
|
|
}, this.http_options); |
|
|
|
}; |
|
|
|
|
|
|
|
Object.assign(http_options, this.http_options); |
|
|
|
|
|
|
|
if(this.proxy_agent){ |
|
|
|
http_options["agent"] = this.proxy_agent; |
|
|
|
|