about summary refs log tree commit diff stats
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-27 22:13:06 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-27 22:13:06 +0300
commit8d22861efda3b41e5fffce8b12638019b438587c (patch)
treefdc6aee813d9610a52be051b43015b903aa33800 /classes
parentc900cc4fcc0a603a1a8887d4ff2919533cf22fdb (diff)
downloadthe-epube-8d22861efda3b41e5fffce8b12638019b438587c.tar.gz
the-epube-8d22861efda3b41e5fffce8b12638019b438587c.tar.xz
add tests for getinfo
Diffstat (limited to 'classes')
-rw-r--r--classes/Handler/GetinfoHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Handler/GetinfoHandler.php b/classes/Handler/GetinfoHandler.php
index 0c51cf5..8914040 100644
--- a/classes/Handler/GetinfoHandler.php
+++ b/classes/Handler/GetinfoHandler.php
@@ -33,6 +33,6 @@ class GetinfoHandler implements RequestHandlerInterface, AuthRequired
 
 		return (new Response())
 			->withStatus(404)
-			->withBody("Not found.");
+			->withBody(json_encode(["error" => "Not found."]));
 	}
 }