Skip to content

Commit

Permalink
No longer consider http 400 as "subscription expired" (#103)
Browse files Browse the repository at this point in the history
Fix #101
  • Loading branch information
marcovtwout authored and Minishlink committed May 11, 2017
1 parent 718d149 commit 46c9189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebPush.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function flush($batchSize = null)
if ($response !== null) {
$statusCode = $response->getStatusCode();
$error['statusCode'] = $statusCode;
$error['expired'] = in_array($statusCode, array(400, 404, 410));
$error['expired'] = in_array($statusCode, array(404, 410));
$error['content'] = $response->getBody();
$error['headers'] = $response->getHeaders();
}
Expand Down

0 comments on commit 46c9189

Please sign in to comment.