Skip to content

Commit 46c9189

Browse files
marcovtwoutMinishlink
authored andcommitted
No longer consider http 400 as "subscription expired" (#103)
Fix #101
1 parent 718d149 commit 46c9189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebPush.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function flush($batchSize = null)
155155
if ($response !== null) {
156156
$statusCode = $response->getStatusCode();
157157
$error['statusCode'] = $statusCode;
158-
$error['expired'] = in_array($statusCode, array(400, 404, 410));
158+
$error['expired'] = in_array($statusCode, array(404, 410));
159159
$error['content'] = $response->getBody();
160160
$error['headers'] = $response->getHeaders();
161161
}

0 commit comments

Comments
 (0)