8000 download 404 · Issue #48 · dcodeIO/ClosureCompiler.js · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
download 404 #48
Open
Open
@huanghaiyang

Description

@huanghaiyang

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: '');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0