diff --git a/binding.go b/binding.go index cb2ec4c..4341150 100644 --- a/binding.go +++ b/binding.go @@ -41,7 +41,7 @@ func Version() string { func bind(ctx *macaron.Context, obj interface{}, ifacePtr ...interface{}) { contentType := ctx.Req.Header.Get("Content-Type") - if ctx.Req.Method == "POST" || ctx.Req.Method == "PUT" || len(contentType) > 0 { + if ctx.Req.Method == "POST" || ctx.Req.Method == "PUT" { switch { case strings.Contains(contentType, "form-urlencoded"): ctx.Invoke(Form(obj, ifacePtr...))