Skip to content

Commit

Permalink
Merge pull request #78 from heroku/pass-reject-unauthorized-to-tunnel
Browse files Browse the repository at this point in the history
Pass through rejectUnauthorized when using tunnel
  • Loading branch information
Ransom Briggs authored Feb 22, 2017
2 parents 34333ff + b26d257 commit 2567a1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class Request {
host: process.env.HEROKU_HTTP_PROXY_HOST,
port: process.env.HEROKU_HTTP_PROXY_PORT || 8080,
proxyAuth: process.env.HEROKU_HTTP_PROXY_AUTH
}
},
rejectUnauthorized: options.rejectUnauthorized
}
if (this.certs.length > 0) {
agentOpts.ca = this.certs
Expand Down

0 comments on commit 2567a1a

Please sign in to comment.