Skip to content

Commit 03d1633

Browse files
authored
Merge pull request appwrite#998 from appwrite/fix-head-requests
Fix for head requests in Utopia
2 parents 4df8ba3 + 50f97be commit 03d1633

File tree

9 files changed

+188
-110
lines changed

9 files changed

+188
-110
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _APP_DB_PORT=3306
1616
_APP_DB_SCHEMA=appwrite
1717
_APP_DB_USER=user
1818
_APP_DB_PASS=password
19-
_APP_STORAGE_ANTIVIRUS=enabled
19+
_APP_STORAGE_ANTIVIRUS=disabled
2020
_APP_STORAGE_ANTIVIRUS_HOST=clamav
2121
_APP_STORAGE_ANTIVIRUS_PORT=3310
2222
_APP_INFLUXDB_HOST=influxdb

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
- Anonymous login
44

5+
## Upgrades
6+
7+
- Upgraded ClamAV to version 1.3.0
8+
59
# Version 0.7.1
610

711
## Features

app/controllers/api/health.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@
254254
/** @var Appwrite\Utopia\Response $response */
255255

256256
if (App::getEnv('_APP_STORAGE_ANTIVIRUS') === 'disabled') { // Check if scans are enabled
257-
throw new Exception('Anitvirus is disabled');
257+
return $response->json([
258+
'status' => 'disabled',
259+
'version' => '',
260+
]);
258261
}
259262

260263
$antiVirus = new Network(App::getEnv('_APP_STORAGE_ANTIVIRUS_HOST', 'clamav'),

app/views/install/compose.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ services:
352352
- appwrite-redis:/data:rw
353353

354354
clamav:
355-
image: appwrite/clamav:1.2.0
355+
image: appwrite/clamav:1.3.0
356356
container_name: appwrite-clamav
357357
restart: unless-stopped
358358
networks:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
"appwrite/php-clamav": "1.0.*",
3636

37-
"utopia-php/framework": "0.10.0",
37+
"utopia-php/framework": "0.12.*",
3838
"utopia-php/abuse": "0.3.*",
3939
"utopia-php/analytics": "0.1.*",
4040
"utopia-php/audit": "0.5.*",

0 commit comments

Comments
 (0)