We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d98929 commit c4410feCopy full SHA for c4410fe
bind.go
@@ -67,7 +67,7 @@ func (b *DefaultBinder) BindQueryParams(c Context, i interface{}) error {
67
// See MIMEMultipartForm: https://golang.org/pkg/net/http/#Request.ParseMultipartForm
68
func (b *DefaultBinder) BindBody(c Context, i interface{}) (err error) {
69
req := c.Request()
70
- if req.ContentLength == 0 {
+ if req.ContentLength <= 0 {
71
return
72
}
73
0 commit comments