From 7b184e8e93f955cdc79f0da9c9b2a114fdea139b Mon Sep 17 00:00:00 2001 From: andrurodr Date: Mon, 7 Mar 2022 10:41:08 -0300 Subject: [PATCH] another try --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2a4526ad..66b82845 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,7 +38,7 @@ function wrapWebhook(webhook: string, payload: Object): Promise { let proxy: any = host && port ? { proxy: { host, port }} : null if(proxy) { const agent = new HttpsProxyAgent({host, port, rejectUnauthorized: false}) - proxy = {...proxy, httpAgent: agent, httpsAgent: agent} + proxy = { httpAgent: agent, httpsAgent: agent} } const client = axios.create({...proxy, maxRedirects: 0, timeout: 0, }) client.interceptors.request.use( (config: AxiosRequestConfig) => {