mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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);
|
\fwrite($this->stream, $tmp);
|
||||||
$chunk -= \strlen($tmp);
|
$chunk -= \strlen($tmp);
|
||||||
}
|
}
|
||||||
|
"\r\n" === \fread($sock, 2);
|
||||||
} else {
|
} else {
|
||||||
\fwrite($this->stream, \fread($sock, 1024));
|
\fwrite($this->stream, \fread($sock, 1024));
|
||||||
}
|
}
|
||||||
|
|
@ -163,6 +164,7 @@ class Socket extends \SnappyMail\HTTP\Request
|
||||||
$body .= $tmp;
|
$body .= $tmp;
|
||||||
$chunk -= \strlen($tmp);
|
$chunk -= \strlen($tmp);
|
||||||
}
|
}
|
||||||
|
"\r\n" === \fread($sock, 2);
|
||||||
} else {
|
} else {
|
||||||
$body .= \fread($sock, 1024);
|
$body .= \fread($sock, 1024);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue