Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrurodr committed Mar 7, 2022
1 parent 7b184e8 commit 956c8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function wrapWebhook(webhook, payload) {
let proxy = host && port ? { proxy: { host, port } } : null;
if (proxy) {
const agent = new https_proxy_agent_1.HttpsProxyAgent({ host, port, rejectUnauthorized: false });
proxy = Object.assign(Object.assign({}, proxy), { httpAgent: agent, httpsAgent: agent });
proxy = { httpAgent: agent, httpsAgent: agent };
}
const client = axios_1.default.create(Object.assign(Object.assign({}, proxy), { maxRedirects: 0, timeout: 0 }));
client.interceptors.request.use((config) => {
Expand Down

0 comments on commit 956c8a0

Please sign in to comment.