mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 00:20:03 +00:00
Auto commit for release 'develop' on 2025-03-14
This commit is contained in:
@@ -52,8 +52,8 @@ class AcceptHeaders
|
||||
// if bad 'Content-Type' header, refuse service.
|
||||
|
||||
// some routes are exempt from this.
|
||||
$exempt = [
|
||||
'api.v1.data.bulk.transactions'
|
||||
$exempt = [
|
||||
'api.v1.data.bulk.transactions',
|
||||
];
|
||||
|
||||
if (('POST' === $method || 'PUT' === $method) && !$request->hasHeader('Content-Type') && !in_array($request->route()->getName(), $exempt, true)) {
|
||||
|
||||
Reference in New Issue
Block a user