diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-03 14:57:59 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-20 11:22:11 +0100 |
commit | b22b6431d2b0a7f201bb677a3e125f0ae218d6c6 (patch) | |
tree | 078252df3ff58d9738a595f2c32a02b36f1c24e2 /tests | |
parent | 9acb982333f35f001538c51be1a63849357eb59a (diff) | |
download | nextcloud-server-b22b6431d2b0a7f201bb677a3e125f0ae218d6c6.tar.gz nextcloud-server-b22b6431d2b0a7f201bb677a3e125f0ae218d6c6.zip |
Fix gzip mimetype mapping
PHP now detects it as application/gzip and not application/x-gzip anymore
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Type/DetectionTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Files/Type/DetectionTest.php b/tests/lib/Files/Type/DetectionTest.php index d2fdb18e26d..079117f5622 100644 --- a/tests/lib/Files/Type/DetectionTest.php +++ b/tests/lib/Files/Type/DetectionTest.php @@ -71,7 +71,7 @@ class DetectionTest extends \Test\TestCase { public function dataDetectContent(): array { return [ ['/', 'httpd/unix-directory'], - ['/data.tar.gz', 'application/x-gzip'], + ['/data.tar.gz', 'application/gzip'], ['/data.zip', 'application/zip'], ['/testimage.mp3', 'audio/mpeg'], ['/testimage.png', 'image/png'], @@ -91,7 +91,7 @@ class DetectionTest extends \Test\TestCase { public function dataDetect(): array { return [ ['/', 'httpd/unix-directory'], - ['/data.tar.gz', 'application/x-gzip'], + ['/data.tar.gz', 'application/gzip'], ['/data.zip', 'application/zip'], ['/testimagelarge.svg', 'image/svg+xml'], ['/testimage.png', 'image/png'], |