1
0
Fork 0

increase timeout for Foxx proxying (#7707)

This commit is contained in:
Jan 2018-12-10 12:50:54 +01:00 committed by GitHub
parent a1b925c655
commit a8cc43b393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -55,13 +55,17 @@ function proxyLocal (method, url, qs, body, headers = {}) {
if (body) {
headers['content-length'] = body.length;
}
const res = request({
const req = {
method,
url,
qs,
headers,
body
});
};
if (require('internal').db._version(true)['maintainer-mode'] === 'true') {
req.timeout = 300;
}
const res = request(req);
if (res.json && res.json.errorNum) {
throw new ArangoError(res.json);
}