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 a556db4 commit bdf03bfCopy full SHA for bdf03bf
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