作者 邓超

body

@@ -283,7 +283,7 @@ class Body { @@ -283,7 +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 + $data['type'] = str_replace(["content-type:",' '],'',$data['type']);
287 // 编码 287 // 编码
288 if(isset($type['charset'])){ 288 if(isset($type['charset'])){
289 $data['charset'] = strtolower($type['charset']); 289 $data['charset'] = strtolower($type['charset']);