From 221ffb446c5955ed112cb94b2dc2fe6d335aecc9 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 17 Jan 2025 16:36:43 +0000 Subject: [PATCH] Fixed #15946 - added comtent type to webhook test Signed-off-by: snipe --- app/Livewire/SlackSettingsForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/SlackSettingsForm.php b/app/Livewire/SlackSettingsForm.php index f12ef568f..7487f3096 100644 --- a/app/Livewire/SlackSettingsForm.php +++ b/app/Livewire/SlackSettingsForm.php @@ -159,7 +159,7 @@ class SlackSettingsForm extends Component ]); try { - $test = $webhook->post($this->webhook_endpoint, ['body' => $payload]); + $test = $webhook->post($this->webhook_endpoint, ['body' => $payload, ['headers' => ['Content-Type' => 'application/json']]]); if(($test->getStatusCode() == 302)||($test->getStatusCode() == 301)){ return session()->flash('error' , trans('admin/settings/message.webhook.error_redirect', ['endpoint' => $this->webhook_endpoint]));