mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 20:55:42 +00:00
refactor: use stdlib prefix check in header decoder
This commit is contained in:
@@ -107,7 +107,7 @@ func sortKeys(headers map[string]string, filters []string) []string {
|
||||
}
|
||||
|
||||
for _, filter := range filters {
|
||||
if len(key) >= len(filter) && strings.EqualFold(key[:len(filter)], filter) {
|
||||
if strings.HasPrefix(key, filter+"-") {
|
||||
sortedKeys = append(sortedKeys, key)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user