caddyhttp: Use case-insensitive comparison for large Host lists
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…
Reference in New Issue