mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-18 22:41:04 +02:00
Add validation for Headers struct
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package validation
|
||||
|
||||
func prefixValues(prefix string, values ...string) []string {
|
||||
msgs := []string{}
|
||||
for _, value := range values {
|
||||
if value != "" {
|
||||
msgs = append(msgs, prefix+value)
|
||||
}
|
||||
}
|
||||
return msgs
|
||||
}
|
||||
Reference in New Issue
Block a user