mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix bad spelling
This commit is contained in:
parent
cb4e5a80b2
commit
7a2c52531a
@ -65,6 +65,7 @@ class Handler extends ExceptionHandler
|
||||
TokenMismatchException::class,
|
||||
HttpException::class,
|
||||
SuspiciousOperationException::class,
|
||||
BadHttpHeaderException::class,
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -46,8 +46,8 @@ class AcceptHeaders
|
||||
{
|
||||
$method = $request->getMethod();
|
||||
|
||||
if ('GET' === $method && !$request->accepts(['application/json', 'application/vdn.api+json'])) {
|
||||
throw new BadHttpHeaderException('Your request must accept either application/json or application/vdn.api+json.');
|
||||
if ('GET' === $method && !$request->accepts(['application/json', 'application/vnd.api+json'])) {
|
||||
throw new BadHttpHeaderException('Your request must accept either application/json or application/vnd.api+json');
|
||||
}
|
||||
$allowed = ['application/x-www-form-urlencoded', 'application/json',''];
|
||||
$submitted = (string)$request->header('Content-Type');
|
||||
|
Loading…
Reference in New Issue
Block a user