diff --git a/net/ghttp/ghttp_request_param.go b/net/ghttp/ghttp_request_param.go index 7f96883c0..bf748c9ba 100644 --- a/net/ghttp/ghttp_request_param.go +++ b/net/ghttp/ghttp_request_param.go @@ -240,7 +240,7 @@ func (r *Request) parseBody() { r.bodyMap, _ = gxml.DecodeWithoutRoot(body) } // Default parameters decoding. - if r.bodyMap == nil { + if contentType := r.Header.Get("Content-Type"); (contentType == "" || !gstr.Contains(contentType, "multipart/")) && r.bodyMap == nil { r.bodyMap, _ = gstr.Parse(r.GetBodyString()) } }