1
0
Fork 0

Node request-style default for maxRedirects.

This commit is contained in:
Alan Plum 2015-01-20 16:55:36 +01:00
parent 7b76841496
commit 70b31626b2
1 changed files with 2 additions and 0 deletions

View File

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