Skip to content

Commit 4870817

Browse files
authored
Merge pull request #529 from nerg4l/fix/string-length
Use correct method for string length
2 parents 4ce06ad + 1759d1f commit 4870817

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)