mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Adding a way to disable all proxy processing (#691)
* Adding a way to disable all proxy processing When the proxy field in configuration is === false all proxy processing is disabled. This specifically disable the 'http_proxy' environment variable handling. Fixes #635 Related to #434 * Change readme wording From review comment on PR (#691)
This commit is contained in:
committed by
Rubén Norte
parent
62db26b588
commit
07a7b7c84c
@@ -82,7 +82,7 @@ module.exports = function httpAdapter(config) {
|
||||
};
|
||||
|
||||
var proxy = config.proxy;
|
||||
if (!proxy) {
|
||||
if (!proxy && proxy !== false) {
|
||||
var proxyEnv = protocol.slice(0, -1) + '_proxy';
|
||||
var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];
|
||||
if (proxyUrl) {
|
||||
|
||||
Reference in New Issue
Block a user