on master help sign in
Fix a naming error

Would be cool if there was some way to get like a "canonicalization error" where it would figure out if things are defined or not. Maybe there's some way to do that :P

commitd0a24215b0a101c07375d4168dfcebd9e3920122 authorEvan Czaplicki <evancz@users.noreply.github.com> dateFri 10 May 2019, 13:48 (7 years ago) parent3aed9fc
1 file changed+2−2
installers/npm/download.js+2−2
installers/npm/download.js+2−2
@@ -76,11 +76,11 @@ function requestWithRedirects(url, maxRedirects, failure, success)
7676
7777 var redirectUrl = new URL(response.headers['location'], new URL(url).origin).href;
7878
79− if (typeof redirectPath === 'string' && response.statusCode >= 300 && response.statusCode < 400)
79+ if (typeof redirectUrl === 'string' && response.statusCode >= 300 && response.statusCode < 400)
8080 {
8181 return (maxRedirects <= 0)
8282 ? failure(new Error('followed 10 redirects and gave up'))
83− : requestWithRedirects(redirectPath, maxRedirects - 1, failure, success);
83+ : requestWithRedirects(redirectUrl, maxRedirects - 1, failure, success);
8484 }
8585 else
8686 {