aboutsummaryrefslogtreecommitdiff
path: root/uri.go
diff options
context:
space:
mode:
authorGravatar anshul-jain-aws <40903975+anshul-jain-aws@users.noreply.github.com> 2021-01-02 12:14:25 -0800
committerGravatar GitHub <noreply@github.com> 2021-01-02 21:14:25 +0100
commit6234776e7cc4d66f235fc4814aace2c9b7099ce7 (patch)
tree45fcf0ae425bb54bc8986315c7963560a6797a33 /uri.go
parentCloseIdleConnections should also close TLS connections (diff)
downloadfasthttp-6234776e7cc4d66f235fc4814aace2c9b7099ce7.tar.gz
fasthttp-6234776e7cc4d66f235fc4814aace2c9b7099ce7.tar.bz2
fasthttp-6234776e7cc4d66f235fc4814aace2c9b7099ce7.zip
Use QueryString while constructing RequestURI instead of QueryArgs if parsedQueryArgs is set to false (#937)v1.19.0
Diffstat (limited to 'uri.go')
-rw-r--r--uri.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/uri.go b/uri.go
index 0650c93..0788a60 100644
--- a/uri.go
+++ b/uri.go
@@ -406,7 +406,7 @@ func (u *URI) RequestURI() []byte {
} else {
dst = appendQuotedPath(u.requestURI[:0], u.Path())
}
- if u.queryArgs.Len() > 0 {
+ if u.parsedQueryArgs && u.queryArgs.Len() > 0 {
dst = append(dst, '?')
dst = u.queryArgs.AppendBytes(dst)
} else if len(u.queryString) > 0 {