From e6eaaedb44a03045d21c458054db36b8e5bc973c Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Sun, 12 May 2024 23:19:00 +0100 Subject: [PATCH] Update basic auth realm --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index d6cde74..600fd82 100644 --- a/auth.go +++ b/auth.go @@ -58,7 +58,7 @@ type Auth struct { func (a *Auth) Middleware(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Header.Get("Authorization") == "" { - w.Header().Add("WWW-Authenticate", `Basic realm="Please provide a password", charset="UTF-8"`) + w.Header().Add("WWW-Authenticate", `Basic realm="1f349/cardcaldav", charset="UTF-8"`) http.Error(w, "HTTP auth is required", http.StatusUnauthorized) return }