From 1f43e8566b4c1d66a00a138188f0defc5adc6d75 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 9 Feb 2026 14:18:55 -0700 Subject: [PATCH] caddyhttp: Use case-insensitive comparison for large Host lists --- modules/caddyhttp/matchers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index 25666a481..afba1b36f 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -319,7 +319,7 @@ func (m MatchHost) MatchWithError(r *http.Request) (bool, error) { } return m[i] >= reqHost }) - if pos < len(m) && m[pos] == reqHost { + if pos < len(m) && strings.EqualFold(m[pos], reqHost) { return true, nil } }