From 57ea7e69892959352e24a2dc0e09c5f752f74924 Mon Sep 17 00:00:00 2001 From: David Sharnoff Date: Mon, 7 Nov 2022 15:40:15 -0800 Subject: [PATCH] fix: WithPath on NewCookieHandler set domain instead! --- pkg/http/cookie.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/http/cookie.go b/pkg/http/cookie.go index 4949b77..1ebc9e2 100644 --- a/pkg/http/cookie.go +++ b/pkg/http/cookie.go @@ -59,7 +59,7 @@ func WithDomain(domain string) CookieHandlerOpt { func WithPath(path string) CookieHandlerOpt { return func(c *CookieHandler) { - c.domain = path + c.path = path } }