Skip to content

Commit 3d280b9

Browse files
authored
Add accept header to FCM HTTP requests (#989)
1 parent 9c89e5b commit 3d280b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Firebase/Messaging/RequestFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function createRequest(Message $message, string $projectId, bool $validat
4848
->withBody($body)
4949
->withHeader('Content-Type', 'application/json; charset=UTF-8')
5050
->withHeader('Content-Length', (string) $body->getSize())
51+
->withHeader('Accept', 'application/json, text/plain;q=0.9')
5152
;
5253
}
5354

0 commit comments

Comments
 (0)