Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
header content length
Browse files Browse the repository at this point in the history
changed strlen to mb_strlen
  • Loading branch information
sbo-develop committed Sep 28, 2016
1 parent d7f16a9 commit f69c2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/ZendService/Google/Gcm/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function send(Message $message)
$client->setUri(self::SERVER_URI);
$headers = $client->getRequest()->getHeaders();
$headers->addHeaderLine('Authorization', 'key=' . $this->getApiKey());
$headers->addHeaderLine('Content-length', strlen($message->toJson()));
$headers->addHeaderLine('Content-length', mb_strlen($message->toJson()));

$response = $client->setHeaders($headers)
->setMethod('POST')
Expand Down

0 comments on commit f69c2b2

Please sign in to comment.