正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -36,8 +36,8 @@ class Header{ | @@ -36,8 +36,8 @@ class Header{ | ||
| 36 | */ | 36 | */ | 
| 37 | public function __construct(string $raw_header) | 37 | public function __construct(string $raw_header) | 
| 38 | { | 38 | { | 
| 39 | - $raw_header = str_replace("\r\n\n","\r\n\r\n",$raw_header); | ||
| 40 | - $raw_header = explode("\r\n\r\n",trim($raw_header)); | 39 | + $raw_header = str_replace("\r\n\n","\r\n\r\n",trim($raw_header)); | 
| 40 | + $raw_header = explode("\r\n\r\n",trim($raw_header),2); | ||
| 41 | 41 | ||
| 42 | $this->raw_header = $raw_header[0]; | 42 | $this->raw_header = $raw_header[0]; | 
| 43 | // qq的会把退信 内容以header形式返回 | 43 | // qq的会把退信 内容以header形式返回 | 
- 
请 注册 或 登录 后发表评论