mirror of
https://github.com/labstack/echo.git
synced 2025-01-01 22:09:21 +02:00
fix typo
This commit is contained in:
parent
1c6658e48a
commit
631f7f1534
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user