Fix audited request header lookup (#3707)
The headers are stored lowercased but the lookup function wasn't properly lowercasing when indexing in the header map. Fixes #3701
This commit is contained in:
parent
feaef93fb6
commit
9630f93845
|
@ -1211,7 +1211,7 @@ func (b *SystemBackend) handleAuditedHeaderRead(req *logical.Request, d *framewo
|
|||
}
|
||||
|
||||
headerConfig := b.Core.AuditedHeadersConfig()
|
||||
settings, ok := headerConfig.Headers[header]
|
||||
settings, ok := headerConfig.Headers[strings.ToLower(header)]
|
||||
if !ok {
|
||||
return logical.ErrorResponse("Could not find header in config"), nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue