mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixes #15952 - fixed typo in content-type
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
66339481cf
commit
f5a9e4bafa
|
@ -224,7 +224,7 @@ class SlackSettingsForm extends Component
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$response = Http::withHeaders([
|
$response = Http::withHeaders([
|
||||||
'content-type' => 'applications/json',
|
'content-type' => 'application/json',
|
||||||
])->post($this->webhook_endpoint,
|
])->post($this->webhook_endpoint,
|
||||||
$payload)->throw();
|
$payload)->throw();
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ class SlackSettingsForm extends Component
|
||||||
"text" => trans('general.webhook_test_msg', ['app' => $this->webhook_name]),
|
"text" => trans('general.webhook_test_msg', ['app' => $this->webhook_name]),
|
||||||
];
|
];
|
||||||
$response = Http::withHeaders([
|
$response = Http::withHeaders([
|
||||||
'content-type' => 'applications/json',
|
'content-type' => 'application/json',
|
||||||
])->post($this->webhook_endpoint,
|
])->post($this->webhook_endpoint,
|
||||||
$payload)->throw();
|
$payload)->throw();
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,7 @@ class SlackSettingsForm extends Component
|
||||||
$notification->success()->sendMessage($message);
|
$notification->success()->sendMessage($message);
|
||||||
|
|
||||||
$response = Http::withHeaders([
|
$response = Http::withHeaders([
|
||||||
'content-type' => 'applications/json',
|
'content-type' => 'application/json',
|
||||||
])->post($this->webhook_endpoint);
|
])->post($this->webhook_endpoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue