mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 15:08:28 +03:00
Bugfix: chunked response error for #79
This commit is contained in:
parent
bc36b10348
commit
c5d4e5f395
1 changed files with 2 additions and 0 deletions
|
|
@ -148,6 +148,7 @@ class Socket extends \SnappyMail\HTTP\Request
|
|||
\fwrite($this->stream, $tmp);
|
||||
$chunk -= \strlen($tmp);
|
||||
}
|
||||
"\r\n" === \fread($sock, 2);
|
||||
} else {
|
||||
\fwrite($this->stream, \fread($sock, 1024));
|
||||
}
|
||||
|
|
@ -163,6 +164,7 @@ class Socket extends \SnappyMail\HTTP\Request
|
|||
$body .= $tmp;
|
||||
$chunk -= \strlen($tmp);
|
||||
}
|
||||
"\r\n" === \fread($sock, 2);
|
||||
} else {
|
||||
$body .= \fread($sock, 1024);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue