diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-05 12:54:10 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-05 12:54:10 +0200 |
commit | 236d4bd461ed086e433e76f11f8af331578701b2 (patch) | |
tree | bc6779625cdec7c05c5bd798e95530faa410b45d /cookie_test.go | |
parent | Increased cookies' parsing performance (diff) | |
download | fasthttp-236d4bd461ed086e433e76f11f8af331578701b2.tar.gz fasthttp-236d4bd461ed086e433e76f11f8af331578701b2.tar.bz2 fasthttp-236d4bd461ed086e433e76f11f8af331578701b2.zip |
Added Cookie.ParseBytes to be consistent with Args
Diffstat (limited to 'cookie_test.go')
-rw-r--r-- | cookie_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cookie_test.go b/cookie_test.go index 3ec6c52..473fae7 100644 --- a/cookie_test.go +++ b/cookie_test.go @@ -16,7 +16,7 @@ func TestCookieParse(t *testing.T) { func testCookieParse(t *testing.T, s, expectedS string) { var c Cookie - if err := c.Parse([]byte(s)); err != nil { + if err := c.Parse(s); err != nil { t.Fatalf("unexpected error: %s", err) } result := string(c.AppendBytes(nil)) |