kopia lustrzana https://github.com/c9/core
rodzic
c1147c068e
commit
78f2824cc3
|
@ -44,7 +44,11 @@ function RestClient(host, port, config) {
|
||||||
port: port,
|
port: port,
|
||||||
path: path,
|
path: path,
|
||||||
method: method,
|
method: method,
|
||||||
headers: headers
|
headers: headers,
|
||||||
|
timeout: config.timeout || 60 * 1000,
|
||||||
|
pool: config.pool || {
|
||||||
|
maxSockets: 100000,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
if (config.username)
|
if (config.username)
|
||||||
options.auth = config.username + ":" + config.password;
|
options.auth = config.username + ":" + config.password;
|
||||||
|
|
Ładowanie…
Reference in New Issue