Skip to content

Commit

Permalink
fix: Fixing subdomain handling on no_proxy (#2442)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipewmartins committed Sep 28, 2019
1 parent 00cd480 commit 85c9d4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/adapters/http.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 85c9d4f

Please sign in to comment.