when generating Authentication-Results, put each method on a new line for better readability

This commit is contained in:
Mechiel Lukkien
2023-12-14 15:14:07 +01:00
parent 406fdc312d
commit 2710a5b971
3 changed files with 15 additions and 2 deletions

View File

@ -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"