mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
Form accepts get data also
This commit is contained in:
@@ -386,7 +386,7 @@ func BindForm(ctx context.IContext, formObject interface{}) error {
|
|||||||
}
|
}
|
||||||
// if no multipart and post arguments ( means normal form)
|
// if no multipart and post arguments ( means normal form)
|
||||||
|
|
||||||
if reqCtx.PostArgs().Len() == 0 {
|
if reqCtx.PostArgs().Len() == 0 && reqCtx.QueryArgs().Len() == 0 {
|
||||||
return ErrReadBody.With(ErrNoForm.Return())
|
return ErrReadBody.With(ErrNoForm.Return())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user