Skip to content

Commit

Permalink
updated default axios options
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengill committed Jul 1, 2021
1 parent 6ce89ae commit 029ee5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ export default class App {
this.axios = axios.create({
httpAgent: agent,
httpsAgent: agent,
// disabling axios' automatic proxy support:
// axios would read from envvars to configure a proxy automatically, but it doesn't support TLS destinations.
// for compatibility with https://api.slack.com, and for a larger set of possible proxies (SOCKS or other
// protocols), users of this package should use the `agent` option to configure a proxy.
proxy: false,
...clientTls,
});

Expand Down

0 comments on commit 029ee5f

Please sign in to comment.