From 7e9305c8f5f56ab92f88d02172f5ceac410e576f Mon Sep 17 00:00:00 2001 From: Sebastian Gross Date: Wed, 11 Dec 2024 09:15:13 +0100 Subject: [PATCH] webhook: Fix content-typo Content type for json is `application/json` without the plural `s` --- app/Livewire/SlackSettingsForm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Livewire/SlackSettingsForm.php b/app/Livewire/SlackSettingsForm.php index 77337dd8884..f308b8094c9 100644 --- a/app/Livewire/SlackSettingsForm.php +++ b/app/Livewire/SlackSettingsForm.php @@ -228,7 +228,7 @@ public function googleWebhookTest(){ try { $response = Http::withHeaders([ - 'content-type' => 'applications/json', + 'content-type' => 'application/json', ])->post($this->webhook_endpoint, $payload)->throw(); @@ -263,7 +263,7 @@ public function msTeamTestWebhook(){ "text" => trans('general.webhook_test_msg', ['app' => $this->webhook_name]), ]; $response = Http::withHeaders([ - 'content-type' => 'applications/json', + 'content-type' => 'application/json', ])->post($this->webhook_endpoint, $payload)->throw(); } @@ -273,7 +273,7 @@ public function msTeamTestWebhook(){ $notification->success()->sendMessage($message); $response = Http::withHeaders([ - 'content-type' => 'applications/json', + 'content-type' => 'application/json', ])->post($this->webhook_endpoint); }