From 951e1e5a099f432da5b4399f367bf2149511d204 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 5 Oct 2023 16:33:38 +0200 Subject: [PATCH] proxy: Avoid duplicated Www-Authenticate headers For endpoints in the "ProxyWwwAuthenticate" list we accidently set the Www-Authenticate header twice. --- services/proxy/pkg/middleware/authentication.go | 1 - 1 file changed, 1 deletion(-) diff --git a/services/proxy/pkg/middleware/authentication.go b/services/proxy/pkg/middleware/authentication.go index f81e4dec18..ee8ae9b05c 100644 --- a/services/proxy/pkg/middleware/authentication.go +++ b/services/proxy/pkg/middleware/authentication.go @@ -204,7 +204,6 @@ func evalRequestURI(l userAgentLocker, r regexp.Regexp) { return } } - l.w.Header().Add(WwwAuthenticate, fmt.Sprintf("%v realm=\"%s\", charset=\"UTF-8\"", caser.String(l.fallback), l.r.Host)) } func getTraceProvider(o Options) trace.TracerProvider {