You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-15 00:15:00 +02:00
Add validation for Headers struct
This commit is contained in:
11
pkg/validation/utils.go
Normal file
11
pkg/validation/utils.go
Normal file
@ -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