internal: fix Status text marshaling

This commit is contained in:
Simon Ser 2020-02-03 21:54:55 +01:00
parent 69d8cf54ff
commit 3ea3818dd8
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -33,7 +33,7 @@ func (s *Status) MarshalText() ([]byte, error) {
if text == "" {
text = http.StatusText(s.Code)
}
return []byte(fmt.Sprintf("HTTP/1.1 %v %v", s.Code, s.Text)), nil
return []byte(fmt.Sprintf("HTTP/1.1 %v %v", s.Code, text)), nil
}
func (s *Status) UnmarshalText(b []byte) error {