fix: empty input considered as invalid.

fix: referencing wrong file in upgrade task.
This commit is contained in:
Darshan
2026-01-24 16:35:14 +05:30
parent 80a5c24840
commit eb8abcfe63
2 changed files with 2 additions and 2 deletions
@@ -233,7 +233,7 @@ class HttpHandler
$rawBody = file_get_contents('php://input');
$input = json_decode($rawBody, true);
if (!$input) {
if (!is_array($input)) {
http_response_code(400);
echo json_encode(['success' => false, 'message' => 'Invalid request']);
return true;
+1 -1
View File
@@ -44,7 +44,7 @@ class Upgrade extends Install
Console::log('Please navigate to the parent directory of the Appwrite installation and try again.');
Console::log(' parent_directory <= you run the command in this directory');
Console::log(' └── appwrite');
Console::log(' └── docker-compose.yml');
Console::log(' └── ' . $this->getComposeFileName());
return;
}