Skip to content

Proxy Server does not work with Username and Password #20

Open
@starr749

Description

@starr749

The Regex used to to parse the process.env.http_proxy only works when the env variable is in the http://proxyurl:port format.

For those of us stuck behind the corporate firewall: http://username:password@proxyurl:port, the regex does not parse the url correctly.

The line in question being:
var proxyVars = proxyServer.match(/^([^:/]*:[/]{2})?([^:/]+)(:([0-9]+))?/i);

This is really unfortunate for those of us on windows, because we have no place like "/usr/share/unicode/ to put the file either.

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