作者 邓超

qq邮箱有tm毛病

@@ -36,6 +36,7 @@ class Header{ @@ -36,6 +36,7 @@ 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);
39 $raw_header = explode("\r\n\r\n",trim($raw_header)); 40 $raw_header = explode("\r\n\r\n",trim($raw_header));
40 41
41 $this->raw_header = $raw_header[0]; 42 $this->raw_header = $raw_header[0];