mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-04 14:58:47 +00:00
caddyhttp: Use case-insensitive comparison for large Host lists
This commit is contained in:
parent
bd374ca9d7
commit
1f43e8566b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue