aboutsummaryrefslogtreecommitdiff
path: root/header.go
diff options
context:
space:
mode:
authorGravatar tyltr <tylitianrui@126.com> 2021-10-30 21:58:20 +0800
committerGravatar GitHub <noreply@github.com> 2021-10-30 15:58:20 +0200
commit6006c8761d419a513555b809cab3d2bbdddf7562 (patch)
treeb328605e916c8fb8fe606a8218d8570bc5d5a8b4 /header.go
parentFix race condition in getTCPAddrs (diff)
downloadfasthttp-6006c8761d419a513555b809cab3d2bbdddf7562.tar.gz
fasthttp-6006c8761d419a513555b809cab3d2bbdddf7562.tar.bz2
fasthttp-6006c8761d419a513555b809cab3d2bbdddf7562.zip
chore (#1137)
Diffstat (limited to 'header.go')
-rw-r--r--header.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/header.go b/header.go
index 4cbe9f3..fb6f005 100644
--- a/header.go
+++ b/header.go
@@ -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...)