aboutsummaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorGravatar Tolyar <Tolyar@users.noreply.github.com> 2021-12-26 16:08:23 +0300
committerGravatar GitHub <noreply@github.com> 2021-12-26 21:08:23 +0800
commit6c0518b89a81418033490dd3368bc30ec720f2b9 (patch)
treed7f1d39fd39a2c5d1f96e7e99e5ea4789d2ae2a5 /http.go
parentAdd MaxIdleWorkerDuration to Server. (#1183) (diff)
downloadfasthttp-6c0518b89a81418033490dd3368bc30ec720f2b9.tar.gz
fasthttp-6c0518b89a81418033490dd3368bc30ec720f2b9.tar.bz2
fasthttp-6c0518b89a81418033490dd3368bc30ec720f2b9.zip
Fix UseHostHeader for DoTimeout + tests (#1184)
Diffstat (limited to 'http.go')
-rw-r--r--http.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/http.go b/http.go
index 81b2496..c17b22f 100644
--- a/http.go
+++ b/http.go
@@ -732,6 +732,8 @@ func (req *Request) copyToSkipBody(dst *Request) {
dst.parsedPostArgs = req.parsedPostArgs
dst.isTLS = req.isTLS
+ dst.UseHostHeader = req.UseHostHeader
+
// do not copy multipartForm - it will be automatically
// re-created on the first call to MultipartForm.
}