mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Fixed a typo
This commit is contained in:
@@ -69,7 +69,7 @@ func (req *Request) CopyTo(dst *Request) {
|
||||
// CopyTo copies resp contents to dst.
|
||||
func (resp *Response) CopyTo(dst *Response) {
|
||||
dst.Clear()
|
||||
resp.Header.CopyTo(&resp.Header)
|
||||
resp.Header.CopyTo(&dst.Header)
|
||||
dst.Body = append(dst.Body[:0], resp.Body...)
|
||||
dst.SkipBody = resp.SkipBody
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user