Update support.js

master
Snipa22 7 years ago committed by GitHub
parent dc3dd03e83
commit cb881695d3

@ -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";

Loading…
Cancel
Save