Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 166c72e commit 69b3d2cCopy full SHA for 69b3d2c
lib/internal/http.js
@@ -156,7 +156,7 @@ class ProxyConfig {
156
if (entry === host || entry === hostWithPort) return false; // Matching host and host:port
157
158
// Follow curl's behavior: strip leading dot before matching suffixes.
159
- if (entry.startsWith('.')) {
+ if (entry[0] === '.') {
160
const suffix = entry.substring(1);
161
if (host.endsWith(suffix)) return false;
162
}
0 commit comments