proxy: Avoid duplicated Www-Authenticate headers

For endpoints in the "ProxyWwwAuthenticate" list we accidently set the Www-Authenticate
header twice.
This commit is contained in:
Ralf Haferkamp
2023-10-05 16:33:38 +02:00
committed by Ralf Haferkamp
parent 07a718dc8e
commit 951e1e5a09

View File

@@ -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 {