From 6c2a3f63679a9a2b424a60c6f47f05d79e9b0cbb Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 5 Apr 2024 05:19:22 +0300 Subject: [PATCH] remove chunk settings --- src/Client/Request.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Client/Request.php b/src/Client/Request.php index 54b553c..cbe1cd0 100644 --- a/src/Client/Request.php +++ b/src/Client/Request.php @@ -111,7 +111,6 @@ class Request public function getResponse( int $timeout = 30, // socket timeout, useful for offline resources ?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 &$code = null, // error code 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( $part