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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user