From e8eddba804fcab7041fb51745b8904619fd93ef2 Mon Sep 17 00:00:00 2001 From: andrurodr Date: Fri, 4 Mar 2022 10:14:25 -0300 Subject: [PATCH] release v1.9.2 --- lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index b04b8f5b..ecc0da77 100644 --- a/lib/main.js +++ b/lib/main.js @@ -61,8 +61,8 @@ function wrapWebhook(webhook, payload, proxyHost, proxyPort) { return function () { return __awaiter(this, void 0, void 0, function* () { try { - const config = proxyHost && proxyPort ? { proxy: { host: proxyHost, port: proxyPort } } : {}; - yield axios_1.default.post(webhook, payload, config); + const proxy = proxyHost && proxyPort ? { proxy: { host: proxyHost, port: proxyPort, protocol: 'http' } } : {}; + yield axios_1.default.post(webhook, payload, proxy); } catch (e) { if (e.response) {