aboutsummaryrefslogtreecommitdiff
path: root/uri_test.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-15 23:51:13 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-15 23:51:13 +0200
commit230a39638427f944eb8001abcdc34c16470d1f18 (patch)
tree7bbacc3418afc6d915e0fb5f44c724dc65009154 /uri_test.go
parentHide Request.URI and Request.PostArgs behind accessors, which automatically c... (diff)
downloadfasthttp-230a39638427f944eb8001abcdc34c16470d1f18.tar.gz
fasthttp-230a39638427f944eb8001abcdc34c16470d1f18.tar.bz2
fasthttp-230a39638427f944eb8001abcdc34c16470d1f18.zip
Hide URI.QueryArgs behind accessor, which automatically parses query args
Diffstat (limited to 'uri_test.go')
-rw-r--r--uri_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/uri_test.go b/uri_test.go
index 173a02b..bb2527a 100644
--- a/uri_test.go
+++ b/uri_test.go
@@ -91,7 +91,7 @@ func testURIFullURI(t *testing.T, scheme, host, path, hash string, args *Args, e
u.Host = []byte(host)
u.Path = []byte(path)
u.Hash = []byte(hash)
- u.QueryArgs = *args
+ args.CopyTo(u.QueryArgs())
uri := u.FullURI()
if string(uri) != expectedURI {