mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-27 20:25:41 +00:00
fix: lowercase key and filter before comparing
This commit is contained in:
@@ -107,7 +107,7 @@ func sortKeys(headers map[string]string, filters []string) []string {
|
||||
}
|
||||
|
||||
for _, filter := range filters {
|
||||
if strings.HasPrefix(key, filter+"-") {
|
||||
if strings.HasPrefix(strings.ToLower(key), strings.ToLower(filter)) {
|
||||
sortedKeys = append(sortedKeys, key)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user