remove chunk settings

This commit is contained in:
yggverse 2024-04-05 05:19:22 +03:00
parent 15eee0e814
commit 6c2a3f6367

View File

@ -111,7 +111,6 @@ class Request
public function getResponse( public function getResponse(
int $timeout = 30, // socket timeout, useful for offline resources int $timeout = 30, // socket timeout, useful for offline resources
?int $limit = null, // content length, null for unlimited ?int $limit = null, // content length, null for unlimited
int $chunk = 1, // chunk size in bytes
?int &$length = 0, // initial response length, do not change without special needs ?int &$length = 0, // initial response length, do not change without special needs
?int &$code = null, // error code for debug ?int &$code = null, // error code for debug
?string &$message = null, // error message for debug ?string &$message = null, // error message for debug
@ -155,7 +154,7 @@ class Request
) )
); );
while ($part = fgets($connection, $chunk)) while ($part = fgets($connection, 1))
{ {
$length = $length + mb_strlen( $length = $length + mb_strlen(
$part $part