aboutsummaryrefslogtreecommitdiff
path: root/header.go
diff options
context:
space:
mode:
authorGravatar kinggo <lilong.21@bytedance.com> 2023-04-14 16:38:32 +0800
committerGravatar GitHub <noreply@github.com> 2023-04-14 10:38:32 +0200
commit43cc4870e6bf99ea276867a145aad56e18b6417d (patch)
tree1f50cf5a00b3118542cb03af65ffaa49f60b4d2b /header.go
parentFixed transfer-encoding for empty chunked payload (#1536) (diff)
downloadfasthttp-43cc4870e6bf99ea276867a145aad56e18b6417d.tar.gz
fasthttp-43cc4870e6bf99ea276867a145aad56e18b6417d.tar.bz2
fasthttp-43cc4870e6bf99ea276867a145aad56e18b6417d.zip
fix: add noDefaultContentType copy (#1538)
Diffstat (limited to 'header.go')
-rw-r--r--header.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/header.go b/header.go
index 8804204..76b7d35 100644
--- a/header.go
+++ b/header.go
@@ -1044,6 +1044,7 @@ func (h *RequestHeader) CopyTo(dst *RequestHeader) {
dst.disableNormalizing = h.disableNormalizing
dst.noHTTP11 = h.noHTTP11
dst.connectionClose = h.connectionClose
+ dst.noDefaultContentType = h.noDefaultContentType
dst.contentLength = h.contentLength
dst.contentLengthBytes = append(dst.contentLengthBytes, h.contentLengthBytes...)