diff options
Diffstat (limited to 'lib/http.go')
| -rw-r--r-- | lib/http.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/http.go b/lib/http.go index 1284523..d7f678f 100644 --- a/lib/http.go +++ b/lib/http.go @@ -3,17 +3,17 @@ package lib import ( "net/http" "time" - - "github.com/TecharoHQ/anubis" ) -func ClearCookie(w http.ResponseWriter) { +func (s *Server) ClearCookie(w http.ResponseWriter) { http.SetCookie(w, &http.Cookie{ - Name: anubis.CookieName, - Value: "", - Expires: time.Now().Add(-1 * time.Hour), - MaxAge: -1, - SameSite: http.SameSiteLaxMode, + Name: s.opts.CookieName, + Value: "", + Expires: time.Now().Add(-1 * time.Hour), + MaxAge: -1, + Domain: s.opts.CookieDomain, + Partitioned: s.opts.CookiePartitioned, + SameSite: http.SameSiteLaxMode, }) } |
