Skip to content

Commit 1759d1f

Browse files
committed
Use correct method for string length
1 parent 4ce06ad commit 1759d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/CurlDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private function writeBody($curl, $string): int
210210
}
211211

212212
if ($this->body->getSize() > self::$contentLengthThreshold) {
213-
return count($string);
213+
return strlen($string);
214214
}
215215

216216
return $this->body->write($string);

0 commit comments

Comments
 (0)