mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 15:53:17 +00:00
parent
99b8f44486
commit
4fc570711e
2 changed files with 14 additions and 0 deletions
|
@ -445,6 +445,10 @@ func matchHeaders(input, against http.Header, host string) bool {
|
|||
// match if the header field exists at all
|
||||
continue
|
||||
}
|
||||
if allowedFieldVals == nil && actualFieldVals == nil {
|
||||
// a nil list means match if the header does not exist at all
|
||||
continue
|
||||
}
|
||||
var match bool
|
||||
fieldVals:
|
||||
for _, actualFieldVal := range actualFieldVals {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue