mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:04:38 +03:00
when generating Authentication-Results, put each method on a new line for better readability
This commit is contained in:
@ -59,6 +59,13 @@ func (w *HeaderWriter) AddWrap(buf []byte) {
|
||||
}
|
||||
}
|
||||
|
||||
// Newline starts a new line.
|
||||
func (w *HeaderWriter) Newline() {
|
||||
w.b.WriteString("\r\n\t")
|
||||
w.lineLen = 1
|
||||
w.nonfirst = true
|
||||
}
|
||||
|
||||
// String returns the header in string form, ending with \r\n.
|
||||
func (w *HeaderWriter) String() string {
|
||||
return w.b.String() + "\r\n"
|
||||
|
Reference in New Issue
Block a user