We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e1a0da commit c72fb71Copy full SHA for c72fb71
src/WebPush.php
@@ -248,7 +248,7 @@ protected function prepare(array $notifications): array
248
$auth = $notification->getAuth($this->auth);
249
250
if (!empty($payload) && !empty($userPublicKey) && !empty($userAuthToken)) {
251
- if (!$contentEncoding) {
+ if (null === $contentEncoding || '' === $contentEncoding) {
252
throw new \ErrorException('Subscription should have a content encoding');
253
}
254
0 commit comments