download 404
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 from http://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: '');