feat: update appwrite to use generic S3 adapter

This commit is contained in:
Fabian Gruber
2025-04-07 09:53:38 +02:00
parent fcd31f4cff
commit 954ed45a36
3 changed files with 23 additions and 4 deletions
+5 -1
View File
@@ -235,7 +235,11 @@ class Executor
throw new \Exception($message, $status);
}
$response['body']['headers'] = \json_decode($response['body']['headers'] ?? '{}', true);
$headers = $response['body']['headers'] ?? [];
if (is_string($headers)) {
$headers = \json_decode($headers, true);
}
$response['body']['headers'] = $headers;
$response['body']['statusCode'] = \intval($response['body']['statusCode'] ?? 500);
$response['body']['duration'] = \floatval($response['body']['duration'] ?? 0);
$response['body']['startTime'] = \floatval($response['body']['startTime'] ?? \microtime(true));