Skip to content

Commit

Permalink
Merge pull request #529 from nerg4l/fix/string-length
Browse files Browse the repository at this point in the history
Use correct method for string length
  • Loading branch information
oscarotero authored Dec 10, 2023
2 parents 4ce06ad + 1759d1f commit 4870817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/CurlDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4870817

Please sign in to comment.