Merge pull request #18151 from MarvelousAnything/fixes/test_webhook_content_type

Fix Content-Type Header not being set correctly for testWebhook
This commit is contained in:
snipe
2025-11-04 19:03:53 +00:00
committed by GitHub
+1 -1
View File
@@ -159,7 +159,7 @@ class SlackSettingsForm extends Component
]);
try {
$test = $webhook->post($this->webhook_endpoint, ['body' => $payload, ['headers' => ['Content-Type' => 'application/json']]]);
$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]));