From 89d1c90bf26bed5e23f57f92a8640010131ed425 Mon Sep 17 00:00:00 2001 From: David Sharnoff Date: Mon, 14 Nov 2022 07:58:36 -0800 Subject: [PATCH] fix: WithPath on NewCookieHandler set domain instead! (#240) --- 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 } }