refactor(oidcgate): drop unreachable lowercase prefix; add multi-value mirror test

This commit is contained in:
2026-05-19 13:48:13 +01:00
parent 0c092a5a22
commit 047fea3c75
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func newSuccessHandler() http.Handler {
}
func shouldMirror(name string) bool {
if strings.HasPrefix(name, "X-") || strings.HasPrefix(name, "x-") {
if strings.HasPrefix(name, "X-") {
return true
}
canonical := http.CanonicalHeaderKey(name)