fix parsing Authentication-Results header with a "reason=..." part

noticed in gopherwatch logging
This commit is contained in:
Mechiel Lukkien
2024-06-28 10:39:46 +02:00
parent 73373a19c1
commit 367e968199
2 changed files with 18 additions and 0 deletions

View File

@ -424,6 +424,8 @@ func (p *parser) xresinfo(methodKeyword string) (am AuthMethod) {
am.Method, am.Version, am.Result = p.xmethodspec(methodKeyword)
p.cfws()
if p.take("reason") {
p.cfws()
p.xtake("=")
p.cfws()
am.Reason = p.xvalue()
}