Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace http.request with the request library to be able to use proxies #16

Merged
merged 1 commit into from
Jul 8, 2016

Conversation

HughePaul
Copy link
Contributor

Added request module to enable proxies specified by environment variables:
HTTP_PROXY and HTTPS_PROXY

@gavboulton
Copy link
Contributor

Looking.

@gavboulton
Copy link
Contributor

LGTM.

}
if (typeof callback === 'function') {
callback(err, data, responseTime);
}
}.bind(this);

var request = protocol.request(settings, function (response) {
Model._request(settings, function (e, response) {
if (e) {
Copy link

@JoeChapman JoeChapman Jul 6, 2016

Choose a reason for hiding this comment

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

e === event? Longhand is easier to identify

Choose a reason for hiding this comment

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

BTW, I know it's error. Devils advocate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair comment, updated to err, across the module

@gavboulton gavboulton merged commit f80ac2c into master Jul 8, 2016
@gavboulton gavboulton deleted the feature/request-proxy branch July 8, 2016 10:24
@gavboulton
Copy link
Contributor

hmpo-model@0.7.0 published.

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

Successfully merging this pull request may close these issues.

None yet

3 participants