From b22b6431d2b0a7f201bb677a3e125f0ae218d6c6 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 3 Jan 2023 14:57:59 +0100 Subject: Fix gzip mimetype mapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PHP now detects it as application/gzip and not application/x-gzip anymore Signed-off-by: Côme Chilliet --- tests/lib/Files/Type/DetectionTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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'], -- cgit v1.2.3