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 d7f678f..1284523 100644 --- a/lib/http.go +++ b/lib/http.go @@ -3,17 +3,17 @@ package lib import ( "net/http" "time" + + "github.com/TecharoHQ/anubis" ) -func (s *Server) ClearCookie(w http.ResponseWriter) { +func ClearCookie(w http.ResponseWriter) { http.SetCookie(w, &http.Cookie{ - 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, + Name: anubis.CookieName, + Value: "", + Expires: time.Now().Add(-1 * time.Hour), + MaxAge: -1, + SameSite: http.SameSiteLaxMode, }) } |
