Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

HTTP_PROXY appears not to be followed #189

Open
darkwing opened this issue Jul 9, 2015 · 2 comments
Open

HTTP_PROXY appears not to be followed #189

darkwing opened this issue Jul 9, 2015 · 2 comments

Comments

@darkwing
Copy link

darkwing commented Jul 9, 2015

For local testing, I'm hoping to proxy GitHub API calls to a local host (http://host:8000/). I do the following command to start my application:

export HTTP_PROXY='http://host:8000/' && node app

Yet octonode still hits https://api.github.com/repos/........ to fetch data. According to the documentation, shouldn't http://host:8000/..... be used?

@pksunkara
Copy link
Owner

Can you try setting HTTPS_PROXY?

@darkwing
Copy link
Author

No dice; a reduced example:

> export HTTPS_PROXY='http://host:8000/'
> node
var octonode = require('octonode');
var client = octonode.client();
var j = client.get('/users/darkwing', function(){});

// Request goes to:  https://api.github.com/users/darkwing

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

No branches or pull requests

2 participants