diff options
author | kinggo <lilong.21@bytedance.com> | 2023-04-14 16:38:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 10:38:32 +0200 |
commit | 43cc4870e6bf99ea276867a145aad56e18b6417d (patch) | |
tree | 1f50cf5a00b3118542cb03af65ffaa49f60b4d2b /header.go | |
parent | Fixed transfer-encoding for empty chunked payload (#1536) (diff) | |
download | fasthttp-43cc4870e6bf99ea276867a145aad56e18b6417d.tar.gz fasthttp-43cc4870e6bf99ea276867a145aad56e18b6417d.tar.bz2 fasthttp-43cc4870e6bf99ea276867a145aad56e18b6417d.zip |
fix: add noDefaultContentType copy (#1538)
Diffstat (limited to 'header.go')
-rw-r--r-- | header.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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...) |