added eager empty string check

This commit is contained in:
Gani Georgiev 2023-06-26 12:53:15 +03:00
parent 4ab9c6f87f
commit 91bbbc4bdb
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ func bindFormData(c echo.Context, i interface{}) error {
// - any other string (empty string too) is left as it is
func normalizeMultipartValue(raw string) any {
switch raw {
case "":
return raw
case "true":
return true
case "false":