From 07f856d98a9e31190873a8944300e7ceabdd0678 Mon Sep 17 00:00:00 2001 From: andrurodr Date: Fri, 4 Mar 2022 12:44:57 -0300 Subject: [PATCH] version --- lib/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index d2fa085b..36094789 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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) {