mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Expand webhook code.
This commit is contained in:
@@ -30,7 +30,7 @@ class AcceptHeaders
|
||||
throw new BadHttpHeaderException('Your request must accept either application/json or application/vdn.api+json.');
|
||||
}
|
||||
if (('POST' === $method || 'PUT' === $method) && 'application/json' !== (string)$request->header('Content-Type')) {
|
||||
$error = new BadHttpHeaderException('B');
|
||||
$error = new BadHttpHeaderException('Content-Type must be application/json');
|
||||
$error->statusCode = 415;
|
||||
throw $error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user