Skip to content

A free open source IT asset/license management system

Fixes #15952 - fixed typo in content-type

snipef5a9e4bafab2
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);
}