Skip to content

Firefly III: a personal finances manager

It's about expecting JSON, not accepting it.

James Colefbb9d7c6b4c9
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
index caef99ffa1..d66d42a274 100644
--- a/app/Exceptions/Handler.php
+++ b/app/Exceptions/Handler.php
@@ -143,7 +143,7 @@ class Handler extends ExceptionHandler
|| (
// or this one, but it's a JSON exception.
$exception instanceof AuthenticationException
- && Request::acceptsJson() === true
+ && Request::expectsJson() === true
))
) {
// then, send email