diff options
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend.php b/backend.php index 206d866b7..e310322f2 100644 --- a/backend.php +++ b/backend.php @@ -135,6 +135,9 @@ } else { if (method_exists($handler, "catchall")) { $handler->catchall($method); + } else { + header("Content-Type: text/json"); + print Errors::to_json(Errors::E_UNKNOWN_METHOD, ["info" => get_class($handler) . "->$method"]); } } $handler->after(); @@ -154,6 +157,6 @@ } header("Content-Type: text/json"); - print Errors::to_json(Errors::E_UNKNOWN_METHOD); + print Errors::to_json(Errors::E_UNKNOWN_METHOD, ["info" => get_class($handler) . "->$method"]); ?> |