1
0
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:
Makis Maropoulos
2016-06-02 17:48:11 +03:00
parent bd13342149
commit 7f82b101c7

View File

@@ -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())
} }