Skip to content

Commit

Permalink
webhook: Fix content-typo
Browse files Browse the repository at this point in the history
Content type for json is `application/json` without the plural `s`
  • Loading branch information
sgross-emlix committed Dec 11, 2024
1 parent 623c7e2 commit 7e9305c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Livewire/SlackSettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function googleWebhookTest(){

try {
$response = Http::withHeaders([
'content-type' => 'applications/json',
'content-type' => 'application/json',
])->post($this->webhook_endpoint,
$payload)->throw();

Expand Down Expand Up @@ -263,7 +263,7 @@ public function msTeamTestWebhook(){
"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();
}
Expand All @@ -273,7 +273,7 @@ public function msTeamTestWebhook(){
$notification->success()->sendMessage($message);

$response = Http::withHeaders([
'content-type' => 'applications/json',
'content-type' => 'application/json',
])->post($this->webhook_endpoint);
}

Expand Down

0 comments on commit 7e9305c

Please sign in to comment.