Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrurodr committed Mar 4, 2022
1 parent 66745c2 commit 07f856d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ function wrapWebhook(webhook, payload) {
const host = fullProxy ? fullProxy.split(':')[0] : '';
const port = fullProxy ? parseInt(fullProxy.split(':')[1]) : '';
const proxy = host && port ? { proxy: { host, port } } : {};
yield axios_1.default.post(webhook, payload, proxy);
const client = axios_1.default.create(proxy);
client.interceptors.request.use((config) => {
utils_1.logInfo(JSON.stringify(config));
return config;
});
yield client.post(webhook, payload);
}
catch (e) {
if (e.response) {
Expand Down

0 comments on commit 07f856d

Please sign in to comment.