Parse ParamBool case-insensitively (#1151)

This commit is contained in:
Steve Richter
2021-06-04 23:37:01 -04:00
committed by GitHub
parent bebfe296a5
commit 65ccd4c99d
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ func ParamInts(r *http.Request, param string) []int {
}
func ParamBool(r *http.Request, param string, def bool) bool {
p := ParamString(r, param)
p := strings.ToLower(ParamString(r, param))
if p == "" {
return def
}