Skip to content

Commit 9ddc48e

Browse files
fix the headers field for Guzzle request
1 parent 4a39d7c commit 9ddc48e

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)