Skip to content

Commit 5d73da3

Browse files
authored
Update status.go (#1093)
1 parent 3f70d78 commit 5d73da3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

status.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ func invalidStatusLine(statusCode int) []byte {
184184
statusText := StatusMessage(statusCode)
185185
// xxx placeholder of status code
186186
var line = make([]byte, 0, len("HTTP/1.1 xxx \r\n")+len(statusText))
187-
line = append(line, []byte("HTTP/1.1 ")...)
187+
line = append(line, "HTTP/1.1 "...)
188188
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")...)
189+
line = append(line, ' ')
190+
line = append(line, statusText...)
191+
line = append(line, "\r\n"...)
192192
return line
193193
}

0 commit comments

Comments
 (0)