mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-28 04:35:40 +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 { | 		for _, filter := range filters { | ||||||
| 			if strings.HasPrefix(key, filter+"-") { | 			if strings.HasPrefix(strings.ToLower(key), strings.ToLower(filter)) { | ||||||
| 				sortedKeys = append(sortedKeys, key) | 				sortedKeys = append(sortedKeys, key) | ||||||
| 				continue | 				continue | ||||||
| 			} | 			} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stavros
					Stavros