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

Honor the .strictSSL option when using proxies (tunnel-agent) #508

Merged
merged 1 commit into from
Apr 13, 2013

Conversation

jhs
Copy link
Contributor

@jhs jhs commented Apr 8, 2013

Using a proxy makes Request use its own agent. Therefore, Request must give the agent the appropriate rejectUnauthorized value.

Thanks, Isaac Schlueter for a hint of where to look for this bug.

@@ -445,6 +446,7 @@ Request.prototype._updateProtocol = function () {
var tunnelOptions = { proxy: { host: self.proxy.hostname
, port: +self.proxy.port
, proxyAuth: self.proxy.auth }
, rejectUnauthorized: self.rejectUnauthorized
, ca: self.ca }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW, this part, _updateProtocol is a bit of code duplication from above, and note that it has already drifted. This one uses self.ca and the other uses this.ca. Since it is unrelated to my bug, I did not change it.

mikeal added a commit that referenced this pull request Apr 13, 2013
Honor the .strictSSL option when using proxies (tunnel-agent)
@mikeal mikeal merged commit 93e7c20 into request:master Apr 13, 2013
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.

2 participants