mirror of https://gitee.com/bigwinds/arangodb
Node request-style default for maxRedirects.
This commit is contained in:
parent
7b76841496
commit
70b31626b2
|
@ -194,6 +194,8 @@ function request(req) {
|
|||
}
|
||||
if (is.existy(req.maxRedirects)) {
|
||||
options.maxRedirects = req.maxRedirects;
|
||||
} else {
|
||||
options.maxRedirects = 10;
|
||||
}
|
||||
var result = internal.download(url, body, options);
|
||||
|
||||
|
|
Loading…
Reference in New Issue