diff options
author | Mikhail Faraponov <11322032+moredure@users.noreply.github.com> | 2021-09-06 10:43:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 09:43:29 +0200 |
commit | 5d73da31aed12047d2625e86bf405a0cd1f77f2b (patch) | |
tree | 059d7ba5bf77860441da7cd1fd733e95cec62801 /status.go | |
parent | Some FS tests can't run in parallel (diff) | |
download | fasthttp-5d73da31aed12047d2625e86bf405a0cd1f77f2b.tar.gz fasthttp-5d73da31aed12047d2625e86bf405a0cd1f77f2b.tar.bz2 fasthttp-5d73da31aed12047d2625e86bf405a0cd1f77f2b.zip |
Update status.go (#1093)
Diffstat (limited to 'status.go')
-rw-r--r-- | status.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -184,10 +184,10 @@ func invalidStatusLine(statusCode int) []byte { statusText := StatusMessage(statusCode) // xxx placeholder of status code var line = make([]byte, 0, len("HTTP/1.1 xxx \r\n")+len(statusText)) - line = append(line, []byte("HTTP/1.1 ")...) + line = append(line, "HTTP/1.1 "...) line = strconv.AppendInt(line, int64(statusCode), 10) - line = append(line, []byte(" ")...) - line = append(line, []byte(statusText)...) - line = append(line, []byte("\r\n")...) + line = append(line, ' ') + line = append(line, statusText...) + line = append(line, "\r\n"...) return line } |