作者 邓超

body

@@ -283,6 +283,7 @@ class Body { @@ -283,6 +283,7 @@ class Body {
283 $type = $this->preg_match_type($item); 283 $type = $this->preg_match_type($item);
284 if($type){ 284 if($type){
285 $data['type'] = strtolower($type['type']); 285 $data['type'] = strtolower($type['type']);
  286 + $data['type'] = trim(ltrim($data['type'],"content-type:"));
286 // 编码 287 // 编码
287 if(isset($type['charset'])){ 288 if(isset($type['charset'])){
288 $data['charset'] = strtolower($type['charset']); 289 $data['charset'] = strtolower($type['charset']);