Fix content-type of file

This commit is contained in:
Khushboo Verma 2024-02-23 20:10:25 +05:30
parent f79a310965
commit 141cdf4c82

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());
}