2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-30 15:24:11 +03:00

fix: Fixing subdomain handling on no_proxy (#2442)

This commit is contained in:
Felipe Martins
2019-09-28 20:51:20 -03:00
committed by GitHub
parent 00cd48027b
commit 85c9d4ffb0
+1 -2
View File
@@ -121,8 +121,7 @@ module.exports = function httpAdapter(config) {
return true;
}
if (proxyElement[0] === '.' &&
parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement &&
proxyElement.match(/\./g).length === parsed.hostname.match(/\./g).length) {
parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {
return true;
}