mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 02:34:55 +01:00
Form accepts get data also
This commit is contained in:
parent
bd13342149
commit
7f82b101c7
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user