Skip to content

Commit

Permalink
chore: clearer header getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustToNy committed Jul 30, 2023
1 parent 053f65b commit 2135706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Channels/SlackWebhookChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function send($notifiable, Notification $notification)
));
} catch (ClientException $e) {
if ($e->getCode() === 429 && $notification instanceof ShouldQueue) {
$notification->release($e->getResponse()->getHeader('Retry-After')[0]);
$notification->release($e->getResponse()->getHeaderLine('Retry-After'));
} else {
throw $e;
}
Expand Down

0 comments on commit 2135706

Please sign in to comment.