From f5a9e4bafab2ce21f3e34e0031f28ec1b7733809 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 11 Dec 2024 18:09:19 +0000 Subject: [PATCH] Fixes #15952 - fixed typo in content-type Signed-off-by: snipe --- 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 909b2223ad..f12ef568f0 100644 --- a/app/Livewire/SlackSettingsForm.php +++ b/app/Livewire/SlackSettingsForm.php @@ -224,7 +224,7 @@ class SlackSettingsForm extends Component try { $response = Http::withHeaders([ - 'content-type' => 'applications/json', + 'content-type' => 'application/json', ])->post($this->webhook_endpoint, $payload)->throw(); @@ -259,7 +259,7 @@ class SlackSettingsForm extends Component "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(); } @@ -269,7 +269,7 @@ class SlackSettingsForm extends Component $notification->success()->sendMessage($message); $response = Http::withHeaders([ - 'content-type' => 'applications/json', + 'content-type' => 'application/json', ])->post($this->webhook_endpoint); }