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) {