Skip to content

Commit 05d642b

Browse files
committed
Fix Content-length calculation by using strlen.
1 parent b44c45a commit 05d642b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BigBlueButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ private function sendRequest(string $url, string $payload = '', string $contentT
569569
curl_setopt($ch, CURLOPT_POST, 1);
570570
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
571571
// Add Content-length header if payload is present
572-
$headers[] = 'Content-length: ' . mb_strlen($payload);
572+
$headers[] = 'Content-length: ' . strlen($payload);
573573
}
574574

575575
// Set HTTP headers

0 commit comments

Comments
 (0)