From 1759d1f96dadae235c40bd676388c5a636354a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20G=C3=96R=C3=96G?= Date: Sun, 10 Dec 2023 09:22:10 +0100 Subject: [PATCH] Use correct method for string length --- src/Http/CurlDispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/CurlDispatcher.php b/src/Http/CurlDispatcher.php index ac989973..259a9df4 100644 --- a/src/Http/CurlDispatcher.php +++ b/src/Http/CurlDispatcher.php @@ -210,7 +210,7 @@ private function writeBody($curl, $string): int } if ($this->body->getSize() > self::$contentLengthThreshold) { - return count($string); + return strlen($string); } return $this->body->write($string);