-
Notifications
You must be signed in to change notification settings - Fork 34
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
restify/node-restify#878 HTTP proxy improvments (http_proxy
et al)
#85
Conversation
2 similar comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me. A couple of minor nits. Would appreciate another set of eyes on this. cc @micahr @DonutEspresso @jclulow
|
||
// TODO: proxyOpts.headers (see whitelisting of req headers by 'request' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please file an issue for this task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#86 added
// HTTP proxy: `options.proxy` wins, else `https_proxy`/`http_proxy` envvars | ||
// (upper and lowercase) are used. | ||
if (options.proxy === false) { | ||
this.proxy = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We tend to use the convention of self
instead of this
when accessing or mutating a variable that has already been declared. Mind sticking to this convention?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current usage is still largely this.
:
$ grep '\bthis\.' lib/HttpClient.js | wc -l
74
$ grep '\bself\.' lib/HttpClient.js | wc -l
28
However, I'm totally cool favouring self.
. Updated now.
LGTM |
2 similar comments
@yunong I've updated for your requests. I've not used GH reviews yet, so I'm not sure what comes next. I only see a "Dismiss review", which I'm pretty sure isn't what I want to click. ;) |
Merci @trentm 👍 👍 |
Feel free to merge. |
I'll publish a new minor rev tomorrow morning. |
restify-clients@1.4.0 |
See the changelog entry (https://github.com/restify/clients/pull/85/files#diff-8b1c3fd0d4a6765c16dfd18509182f9dR5) and restify/node-restify#878 discussion for notes.