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 0b4f37b commit b46ef76Copy full SHA for b46ef76
1 file changed
binding.go
@@ -41,7 +41,7 @@ func Version() string {
41
42
func bind(ctx *macaron.Context, obj interface{}, ifacePtr ...interface{}) {
43
contentType := ctx.Req.Header.Get("Content-Type")
44
- if ctx.Req.Method == "POST" || ctx.Req.Method == "PUT" || len(contentType) > 0 {
+ if ctx.Req.Method == "POST" || ctx.Req.Method == "PUT" {
45
switch {
46
case strings.Contains(contentType, "form-urlencoded"):
47
ctx.Invoke(Form(obj, ifacePtr...))
0 commit comments