mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 16:24:37 +03:00
fix parsing Authentication-Results header with a "reason=..." part
noticed in gopherwatch logging
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user