Skip to content

Commit c6269d6

Browse files
authored
Merge pull request #18151 from MarvelousAnything/fixes/test_webhook_content_type
Fix Content-Type Header not being set correctly for testWebhook
2 parents c1204a5 + 9ddc48e commit c6269d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Livewire/SlackSettingsForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function testWebhook(){
159159
]);
160160

161161
try {
162-
$test = $webhook->post($this->webhook_endpoint, ['body' => $payload, ['headers' => ['Content-Type' => 'application/json']]]);
162+
$test = $webhook->post($this->webhook_endpoint, ['body' => $payload, 'headers' => ['Content-Type' => 'application/json']]);
163163

164164
if(($test->getStatusCode() == 302)||($test->getStatusCode() == 301)){
165165
return session()->flash('error' , trans('admin/settings/message.webhook.error_redirect', ['endpoint' => $this->webhook_endpoint]));

0 commit comments

Comments
 (0)