aboutsummaryrefslogtreecommitdiff
path: root/cookie_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-05-21 12:11:09 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-05-21 12:11:09 +0200
commita18c6322a24bb26df10e4329876b61dc332109ac (patch)
tree915826f4413b125357bca3173bde46e3542e8011 /cookie_test.go
parentDon't recommend Go 1.13 (diff)
downloadfasthttp-a18c6322a24bb26df10e4329876b61dc332109ac.tar.gz
fasthttp-a18c6322a24bb26df10e4329876b61dc332109ac.tar.bz2
fasthttp-a18c6322a24bb26df10e4329876b61dc332109ac.zip
Fix cookie panic
Diffstat (limited to 'cookie_test.go')
-rw-r--r--cookie_test.go7
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()