diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2021-05-21 12:11:09 +0200 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2021-05-21 12:11:09 +0200 |
commit | a18c6322a24bb26df10e4329876b61dc332109ac (patch) | |
tree | 915826f4413b125357bca3173bde46e3542e8011 /cookie_test.go | |
parent | Don't recommend Go 1.13 (diff) | |
download | fasthttp-a18c6322a24bb26df10e4329876b61dc332109ac.tar.gz fasthttp-a18c6322a24bb26df10e4329876b61dc332109ac.tar.bz2 fasthttp-a18c6322a24bb26df10e4329876b61dc332109ac.zip |
Fix cookie panic
Diffstat (limited to 'cookie_test.go')
-rw-r--r-- | cookie_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cookie_test.go b/cookie_test.go index be0110d..11d8616 100644 --- a/cookie_test.go +++ b/cookie_test.go @@ -6,6 +6,13 @@ import ( "time" ) +func TestCookiePanic(t *testing.T) { + var c Cookie + if err := c.Parse(";SAMeSITe="); err != nil { + t.Error(err) + } +} + func TestCookieValueWithEqualAndSpaceChars(t *testing.T) { t.Parallel() |