Merge pull request #7643 from appwrite/fix-storage-health-check

Fix content-type of file
This commit is contained in:
Christy Jacob 2024-02-24 01:30:16 +05:30 committed by GitHub
commit d5c24df28d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -722,7 +722,7 @@ App::get('/v1/health/storage')
$checkStart = \microtime(true);
foreach ($devices as $device) {
if (!$device->write($device->getPath('health.txt'), 'test', '')) {
if (!$device->write($device->getPath('health.txt'), 'test', 'text/plain')) {
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed writing test file to ' . $device->getRoot());
}