diff options
author | Alex Bond <[email protected]> | 2019-02-02 05:16:46 -0800 |
---|---|---|
committer | Alex Bond <[email protected]> | 2019-02-02 05:16:46 -0800 |
commit | 8b72341eacffc0f564220b21baf15d17de2846b9 (patch) | |
tree | 476c1e14ce0b4fd951d2a334acba7b043d872224 /service/http | |
parent | 60ba949e5ea17ae02fb795c011db7a71782f96e3 (diff) |
Fix application/x-www-form-urlencoded parsing
Diffstat (limited to 'service/http')
-rw-r--r-- | service/http/request.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/request.go b/service/http/request.go index 80e29f49..b1ca514a 100644 --- a/service/http/request.go +++ b/service/http/request.go @@ -153,7 +153,7 @@ func (r *Request) contentType() int { } ct := r.Headers.Get("content-type") - if ct == "application/x-www-form-urlencoded" { + if strings.Contains(ct, "application/x-www-form-urlencoded") { return contentFormData } |