Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/internal/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class ProxyConfig {
if (entry === host || entry === hostWithPort) return false; // Matching host and host:port

// Follow curl's behavior: strip leading dot before matching suffixes.
if (entry.startsWith('.')) {
if (entry[0] === '.') {
const suffix = entry.substring(1);
if (host.endsWith(suffix)) return false;
}
Expand Down
Loading