Compare commits
1 Commits
renovate/t
...
preview-fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79951e1c20 |
@@ -70,8 +70,12 @@ export default async function createCustomProxyAgent(
|
|||||||
|
|
||||||
setGlobalDispatcher(proxyAgent.compose(noProxyInterceptor));
|
setGlobalDispatcher(proxyAgent.compose(noProxyInterceptor));
|
||||||
|
|
||||||
axios.defaults.httpAgent = new HttpProxyAgent(proxyUrl);
|
axios.defaults.httpAgent = new HttpProxyAgent(proxyUrl, {
|
||||||
axios.defaults.httpsAgent = new HttpsProxyAgent(proxyUrl);
|
headers: { 'proxy-authorization': token },
|
||||||
|
});
|
||||||
|
axios.defaults.httpsAgent = new HttpsProxyAgent(proxyUrl, {
|
||||||
|
headers: { 'proxy-authorization': token },
|
||||||
|
});
|
||||||
axios.interceptors.request.use((config) => {
|
axios.interceptors.request.use((config) => {
|
||||||
if (config.url && skipUrl(config.url)) {
|
if (config.url && skipUrl(config.url)) {
|
||||||
config.httpAgent = false;
|
config.httpAgent = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user