From b5f6fd3f558622155c5f7dae2dd12f99cc1f49c5 Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Tue, 9 Jan 2024 13:08:37 -0500 Subject: [PATCH] normalize function names --- endpoints/publicProxy/http.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/endpoints/publicProxy/http.go b/endpoints/publicProxy/http.go index 7f74b1dd..bcd69cc5 100644 --- a/endpoints/publicProxy/http.go +++ b/endpoints/publicProxy/http.go @@ -157,7 +157,7 @@ func authHandler(handler http.Handler, pcfg *Config, key []byte, ctx ziti.Contex switch scheme { case string(sdk.None): logrus.Debugf("auth scheme none '%v'", shrToken) - deleteCookie(w, r) + deleteZrokCookie(w, r) handler.ServeHTTP(w, r) return @@ -203,7 +203,7 @@ func authHandler(handler http.Handler, pcfg *Config, key []byte, ctx ziti.Contex return } - deleteCookie(w, r) + deleteZrokCookie(w, r) handler.ServeHTTP(w, r) case string(sdk.Oauth): @@ -362,7 +362,7 @@ func SetZrokCookie(w http.ResponseWriter, cookieDomain, email, accessToken, prov }) } -func deleteCookie(w http.ResponseWriter, r *http.Request) { +func deleteZrokCookie(w http.ResponseWriter, r *http.Request) { cookie, err := r.Cookie("zrok-access") if err == nil { cookie.MaxAge = -1