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