We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc5a84d commit d92aca2Copy full SHA for d92aca2
1 file changed
binding.go
@@ -35,7 +35,7 @@ import (
35
36
func bind(ctx *macaron.Context, obj interface{}, ifacePtr ...interface{}) {
37
contentType := ctx.Req.Header.Get("Content-Type")
38
- if ctx.Req.Method == "POST" || ctx.Req.Method == "PUT" || ctx.Req.Method == "PATCH" {
+ if ctx.Req.Method == "POST" || ctx.Req.Method == "PUT" || ctx.Req.Method == "PATCH" || ctx.Req.Method == "DELETE" {
39
switch {
40
case strings.Contains(contentType, "form-urlencoded"):
41
ctx.Invoke(Form(obj, ifacePtr...))
0 commit comments