mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-16 16:17:38 +03:00
chore (#1137)
This commit is contained in:
+1
-1
@@ -380,7 +380,7 @@ func appendQuotedPath(dst, src []byte) []byte {
|
||||
|
||||
for _, c := range src {
|
||||
if quotedPathShouldEscapeTable[int(c)] != 0 {
|
||||
dst = append(dst, '%', upperhex[c>>4], upperhex[c&15])
|
||||
dst = append(dst, '%', upperhex[c>>4], upperhex[c&0xf])
|
||||
} else {
|
||||
dst = append(dst, c)
|
||||
}
|
||||
|
||||
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user