1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-01 22:09:21 +02:00
This commit is contained in:
Oleg Lobanov 2016-02-05 20:44:47 +04:00
parent 1c6658e48a
commit 631f7f1534

View File

@ -37,7 +37,7 @@ func (b *binder) MaxMemory() int64 {
func (b *binder) Bind(r *http.Request, i interface{}) (err error) { func (b *binder) Bind(r *http.Request, i interface{}) (err error) {
if r.Body == nil { if r.Body == nil {
err = NewHTTPError(http.StatusBadRequest, "Requesr body can't be nil") err = NewHTTPError(http.StatusBadRequest, "Request body can't be nil")
return return
} }
defer r.Body.Close() defer r.Body.Close()