mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-15 04:18:03 +00:00
refactor(oidcgate): drop unreachable lowercase prefix; add multi-value mirror test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user