mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Update support.js
This commit is contained in:
+1
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user