正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -268,7 +268,11 @@ class Body { | @@ -268,7 +268,11 @@ class Body { | ||
| 268 | $name = ''; | 268 | $name = ''; |
| 269 | foreach ($header as $head){ | 269 | foreach ($header as $head){ |
| 270 | // 判断是否是上一行的 | 270 | // 判断是否是上一行的 |
| 271 | - if(str_starts_with($head,' ') || str_starts_with($head,"\t")){ | 271 | + if( |
| 272 | + str_starts_with($head,' ') || | ||
| 273 | + str_starts_with($head,"\t") || | ||
| 274 | + !str_contains($head, ':') | ||
| 275 | + ){ | ||
| 272 | $data->set($name,' '.$head,true); | 276 | $data->set($name,' '.$head,true); |
| 273 | }else{ | 277 | }else{ |
| 274 | list($name,$value) = explode(":",$head,2); | 278 | list($name,$value) = explode(":",$head,2); |
-
请 注册 或 登录 后发表评论