aboutsummaryrefslogtreecommitdiff
path: root/uri.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2023-08-29 21:08:37 +0300
committerGravatar GitHub <noreply@github.com> 2023-08-29 20:08:37 +0200
commit9aa666e8145d44ee249ce281d895bf20dc82f129 (patch)
treec9fdd69bd367276e67935c41d7dd1d46f2d62b1b /uri.go
parentUpdate golangci-lint and gosec (#1609) (diff)
downloadfasthttp-9aa666e8145d44ee249ce281d895bf20dc82f129.tar.gz
fasthttp-9aa666e8145d44ee249ce281d895bf20dc82f129.tar.bz2
fasthttp-9aa666e8145d44ee249ce281d895bf20dc82f129.zip
Enable gocritic linter; fix lint issues (#1612)
Diffstat (limited to 'uri.go')
-rw-r--r--uri.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/uri.go b/uri.go
index 4b578eb..f1ca6d9 100644
--- a/uri.go
+++ b/uri.go
@@ -688,7 +688,8 @@ func normalizePath(dst, src []byte) []byte {
func (u *URI) RequestURI() []byte {
var dst []byte
if u.DisablePathNormalizing {
- dst = append(u.requestURI[:0], u.PathOriginal()...)
+ dst = u.requestURI[:0]
+ dst = append(dst, u.PathOriginal()...)
} else {
dst = appendQuotedPath(u.requestURI[:0], u.Path())
}