Fix errors parsing in FirebaseTransport
This commit is contained in:
parent
393e5c4f4a
commit
2818e2cd43
@ -73,7 +73,7 @@ final class FirebaseTransport extends AbstractTransport
|
|||||||
'json' => array_filter($options),
|
'json' => array_filter($options),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$contentType = $response->getHeaders(false)['Content-Type'] ?? '';
|
$contentType = $response->getHeaders(false)['content-type'][0] ?? '';
|
||||||
$jsonContents = 0 === strpos($contentType, 'application/json') ? $response->toArray(false) : null;
|
$jsonContents = 0 === strpos($contentType, 'application/json') ? $response->toArray(false) : null;
|
||||||
|
|
||||||
if (200 !== $response->getStatusCode()) {
|
if (200 !== $response->getStatusCode()) {
|
||||||
|
Reference in New Issue
Block a user