aboutsummaryrefslogtreecommitdiff
path: root/cookie_test.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-19 12:51:34 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-19 12:51:34 +0200
commit48c0f89ee7a350b601a62a524fca875afe5138bb (patch)
tree42a839d590922647a372c9db80e383eb8cbfc683 /cookie_test.go
parentAdded SetUint helper to Args (diff)
downloadfasthttp-48c0f89ee7a350b601a62a524fca875afe5138bb.tar.gz
fasthttp-48c0f89ee7a350b601a62a524fca875afe5138bb.tar.bz2
fasthttp-48c0f89ee7a350b601a62a524fca875afe5138bb.zip
Added Stringer implementations to URI, Args and Cookie
Diffstat (limited to 'cookie_test.go')
-rw-r--r--cookie_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cookie_test.go b/cookie_test.go
index 4939e32..478f91c 100644
--- a/cookie_test.go
+++ b/cookie_test.go
@@ -19,7 +19,7 @@ func testCookieParse(t *testing.T, s, expectedS string) {
if err := c.Parse(s); err != nil {
t.Fatalf("unexpected error: %s", err)
}
- result := string(c.AppendBytes(nil))
+ result := string(c.Cookie())
if result != expectedS {
t.Fatalf("unexpected cookies %q. Expected %q. Original %q", result, expectedS, s)
}