mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user