From 8b72341eacffc0f564220b21baf15d17de2846b9 Mon Sep 17 00:00:00 2001 From: Alex Bond Date: Sat, 2 Feb 2019 05:16:46 -0800 Subject: Fix application/x-www-form-urlencoded parsing --- service/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/http') 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 } -- cgit v1.2.3