Skip to content

Commit c72fb71

Browse files
committed
Update WebPush.php
1 parent 7e1a0da commit c72fb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebPush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ protected function prepare(array $notifications): array
248248
$auth = $notification->getAuth($this->auth);
249249

250250
if (!empty($payload) && !empty($userPublicKey) && !empty($userAuthToken)) {
251-
if (!$contentEncoding) {
251+
if (null === $contentEncoding || '' === $contentEncoding) {
252252
throw new \ErrorException('Subscription should have a content encoding');
253253
}
254254

0 commit comments

Comments
 (0)