Skip to content

Commit 34606bc

Browse files
authored
Fix http success check
1 parent c06942a commit 34606bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SendGridChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function send($notifiable, Notification $notification)
5555

5656
$response = $this->sendGrid->send($message->build());
5757

58-
if ($response->statusCode() !== 200) {
58+
if ($response->statusCode() < 200 || $response->statusCode() >= 300) {
5959
throw CouldNotSendNotification::serviceRespondedWithAnError(
6060
$response->body()
6161
);

0 commit comments

Comments
 (0)