diff options
author | tyltr <tylitianrui@126.com> | 2021-10-30 21:58:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 15:58:20 +0200 |
commit | 6006c8761d419a513555b809cab3d2bbdddf7562 (patch) | |
tree | b328605e916c8fb8fe606a8218d8570bc5d5a8b4 /header.go | |
parent | Fix race condition in getTCPAddrs (diff) | |
download | fasthttp-6006c8761d419a513555b809cab3d2bbdddf7562.tar.gz fasthttp-6006c8761d419a513555b809cab3d2bbdddf7562.tar.bz2 fasthttp-6006c8761d419a513555b809cab3d2bbdddf7562.zip |
chore (#1137)
Diffstat (limited to 'header.go')
-rw-r--r-- | header.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -746,7 +746,7 @@ func (h *ResponseHeader) CopyTo(dst *ResponseHeader) { dst.noDefaultDate = h.noDefaultDate dst.statusCode = h.statusCode - dst.statusLine = append(dst.statusLine[:0], h.statusLine...) + dst.statusLine = append(dst.statusLine, h.statusLine...) dst.contentLength = h.contentLength dst.contentLengthBytes = append(dst.contentLengthBytes, h.contentLengthBytes...) dst.contentType = append(dst.contentType, h.contentType...) |