Skip to content
This repository has been archived by the owner on Dec 24, 2018. It is now read-only.

issue #47 - proxy support in wget.js #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

issue #47 - proxy support in wget.js #48

wants to merge 2 commits into from

Conversation

pyhedgehog
Copy link

This is somewhat crude solution, but it will work in simple cases.
To use it https_proxy environment variable should be set.

@@ -9,9 +9,18 @@ function wget(uri, callback) {
var options = url.parse(uri);
var paths = options.pathname.split('/');
var filename = paths[paths.length - 1];
var proxy;
if(process.env[proto+'_proxy']) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should define variable proto before use in this line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants