Merge pull request #1645 from automatisch/flex-http-request

feat(http-request/custom-request): utilize accept header for parsing response
This commit is contained in:
Ali BARIN
2024-04-02 19:54:44 +02:00
committed by GitHub
2 changed files with 9 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import axios from 'axios';
import { HttpsProxyAgent } from 'https-proxy-agent';
import { HttpProxyAgent } from 'http-proxy-agent';
const config = {};
const config = axios.defaults;
const httpProxyUrl = process.env.http_proxy;
const httpsProxyUrl = process.env.https_proxy;
const supportsProxy = httpProxyUrl || httpsProxyUrl;