diff options
author | anshul-jain-aws <40903975+anshul-jain-aws@users.noreply.github.com> | 2021-01-02 12:14:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 21:14:25 +0100 |
commit | 6234776e7cc4d66f235fc4814aace2c9b7099ce7 (patch) | |
tree | 45fcf0ae425bb54bc8986315c7963560a6797a33 /uri.go | |
parent | CloseIdleConnections should also close TLS connections (diff) | |
download | fasthttp-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |