From db8d5cef753cb9dc3a91e95ab88838f11178a72c Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Fri, 17 May 2024 13:07:22 +0100 Subject: [PATCH] Fix bug --- src/Listeners/FormSubmittedListener.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Listeners/FormSubmittedListener.php b/src/Listeners/FormSubmittedListener.php index 32cbf7a..f93b8cb 100755 --- a/src/Listeners/FormSubmittedListener.php +++ b/src/Listeners/FormSubmittedListener.php @@ -67,8 +67,7 @@ public function handle(FormSubmitted $event) 'email' => $email, ])->render(); - $response = Http::withHeaders(['apikey' => $apiKey]) - ->withBody($content, 'text/plain') + $response = Http::withBody($content, 'text/plain') ->post('https://spamcheck.postmarkapp.com/filter', [ 'email' => $body, 'options' => 'short',