|
|
|
@ -67,7 +67,7 @@ function jsonRequest(host, port, data, callback, path) {
|
|
|
|
|
uri = "http://" + host + ":" + port + "/";
|
|
|
|
|
}
|
|
|
|
|
debug("JSON URI: " + uri + path + " Args: " + JSON.stringify(data));
|
|
|
|
|
let client = requestJson.createClient(uri);
|
|
|
|
|
let client = requestJson.createClient(uri, {timeout: 300000});
|
|
|
|
|
client.headers["Content-Type"] = "application/json";
|
|
|
|
|
client.headers["Content-Length"] = data.length;
|
|
|
|
|
client.headers["Accept"] = "application/json";
|
|
|
|
|