This commit is contained in:
tyltr
2021-10-30 21:58:20 +08:00
committed by GitHub
parent 6d4db9bb7e
commit 6006c8761d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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...)