Skip to content

Commit

Permalink
chore (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylitianrui committed Oct 30, 2021
1 parent 6d4db9b commit 6006c87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bytesconv.go
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion header.go
Expand Up @@ -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...)
Expand Down

0 comments on commit 6006c87

Please sign in to comment.