diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-03-26 20:50:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-26 20:50:54 -0400 |
| commit | ecc6b47f90bd4ffc48d1555df8012d534fa5d180 (patch) | |
| tree | 75ec8d9ff574742387b5b93f205eb36250c652a2 /lib/http.go | |
| parent | e7cbd349f3ff96788dc7a8540d29808ca72e1c44 (diff) | |
| download | anubis-ecc6b47f90bd4ffc48d1555df8012d534fa5d180.tar.xz anubis-ecc6b47f90bd4ffc48d1555df8012d534fa5d180.zip | |
Revert "lib/anubis: support setting extended cookie flags (#120)" (#134)
This reverts commit e7cbd349f3ff96788dc7a8540d29808ca72e1c44.
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, }) } |
