2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

replace deprecated substr() with slice() (#4468)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
JALAL
2022-05-03 19:39:40 +00:00
committed by GitHub
parent ad27f803d7
commit eef2f97281
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ module.exports = function httpAdapter(config) {
return true;
}
if (proxyElement[0] === '.' &&
parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {
parsed.hostname.slice(parsed.hostname.length - proxyElement.length) === proxyElement) {
return true;
}