This commit is contained in:
calzoneman 2015-05-24 11:09:56 -04:00
parent c4add8f142
commit 334c0d933b

View file

@ -41,7 +41,7 @@ function testUrl(url, cb, redirected) {
if (res.statusCode === 301 || res.statusCode === 302) { if (res.statusCode === 301 || res.statusCode === 302) {
if (redirected) { if (redirected) {
return cb("Too many redirects. Please provide a direct link to the " return cb("Too many redirects. Please provide a direct link to the " +
"file"); "file");
} }
return testUrl(res.headers['location'], cb, true); return testUrl(res.headers['location'], cb, true);