Fix bad spelling

This commit is contained in:
James Cole 2023-01-08 16:34:34 +01:00
parent cb4e5a80b2
commit 7a2c52531a
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 3 additions and 2 deletions

View File

@ -65,6 +65,7 @@ class Handler extends ExceptionHandler
TokenMismatchException::class, TokenMismatchException::class,
HttpException::class, HttpException::class,
SuspiciousOperationException::class, SuspiciousOperationException::class,
BadHttpHeaderException::class,
]; ];
/** /**

View File

@ -46,8 +46,8 @@ class AcceptHeaders
{ {
$method = $request->getMethod(); $method = $request->getMethod();
if ('GET' === $method && !$request->accepts(['application/json', '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/vdn.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','']; $allowed = ['application/x-www-form-urlencoded', 'application/json',''];
$submitted = (string)$request->header('Content-Type'); $submitted = (string)$request->header('Content-Type');