2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Protocol not parsed when setting proxy config from env vars (#3070)

* Fixing proxy protocol config when parsed from env vars

* Adding instructions to specify proxy protocol when setting proxy config

* Moved HTTPS proxy config instruction closer to example

* Clear https_proxy env var so as to not impact other tests
This commit is contained in:
Jonathan Foster
2020-12-03 02:36:50 -05:00
committed by GitHub
parent c7329fefc8
commit e426910be7
5 changed files with 151 additions and 3 deletions
+2 -2
View File
@@ -151,11 +151,11 @@ module.exports = function httpAdapter(config) {
});
}
if (shouldProxy) {
proxy = {
host: parsedProxyUrl.hostname,
port: parsedProxyUrl.port
port: parsedProxyUrl.port,
protocol: parsedProxyUrl.protocol
};
if (parsedProxyUrl.auth) {