forked from mirror/gin
Fix binding.go panic
This commit is contained in:
parent
79c66136e0
commit
dcad0df8f7
|
@ -87,7 +87,7 @@ func mapForm(ptr interface{}, form map[string][]string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
formStruct.Elem().Field(i).Set(slice)
|
formStruct.Field(i).Set(slice)
|
||||||
} else {
|
} else {
|
||||||
if err := setWithProperType(typeField.Type.Kind(), inputValue[0], structField); err != nil {
|
if err := setWithProperType(typeField.Type.Kind(), inputValue[0], structField); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue