mirror of
https://github.com/caddyserver/caddy.git
synced 2026-02-15 07:52:08 -05:00
caddyhttp: Use case-insensitive comparison for large Host lists
This commit is contained in:
parent
bd374ca9d7
commit
1f43e8566b
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user