You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.
`
// Make a new option object for next request from old options object
// Break url in parts
var searchname = url.parse(redirectUrl).search;
var hostname = url.parse(redirectUrl).hostname;
var pathname = url.parse(redirectUrl).pathname;
in lib/follow-redirects.js line 128:
`
// Make a new option object for next request from old options object
// Break url in parts
var searchname = url.parse(redirectUrl).search;
var hostname = url.parse(redirectUrl).hostname;
var pathname = url.parse(redirectUrl).pathname;
var redirectOptions = options;
redirectOptions.reqUrl = redirectUrl;
redirectOptions.hostname = hostname;
redirectOptions.path = pathname + searchname;
var out = module.exports[proto].get(redirectOptions, redirectCallback(reqUrl, redirect), redirect);
`
when
searchname
is null ,it will download fromhttp://120.52.72.22:80/dl.google.com/c3pr90ntc0td/closure-compiler/compiler-latest.tar.gznull
please fix this bug with :
redirectOptions.path = pathname + (searchname? searchname: '');
The text was updated successfully, but these errors were encountered: