We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f70d78 commit 5d73da3Copy full SHA for 5d73da3
status.go
@@ -184,10 +184,10 @@ func invalidStatusLine(statusCode int) []byte {
184
statusText := StatusMessage(statusCode)
185
// xxx placeholder of status code
186
var line = make([]byte, 0, len("HTTP/1.1 xxx \r\n")+len(statusText))
187
- line = append(line, []byte("HTTP/1.1 ")...)
+ line = append(line, "HTTP/1.1 "...)
188
line = strconv.AppendInt(line, int64(statusCode), 10)
189
- line = append(line, []byte(" ")...)
190
- line = append(line, []byte(statusText)...)
191
- line = append(line, []byte("\r\n")...)
+ line = append(line, ' ')
+ line = append(line, statusText...)
+ line = append(line, "\r\n"...)
192
return line
193
}
0 commit comments