Relax case sensitive string comparisons in various parts of GCT

This commit is contained in:
Adrian Gallagher
2019-04-23 14:22:00 +10:00
parent 32e4dcb63d
commit 9bdcc22ae1
8 changed files with 29 additions and 32 deletions

View File

@@ -220,7 +220,7 @@ func New(name string, authLimit, unauthLimit *RateLimit, httpRequester *http.Cli
// IsValidMethod returns whether the supplied method is supported
func IsValidMethod(method string) bool {
return common.StringDataCompareUpper(supportedMethods, method)
return common.StringDataCompareInsensitive(supportedMethods, method)
}
// IsValidCycle checks to see whether the current request cycle is valid or not