aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--resources/config/mimetypealiases.dist.json4
-rw-r--r--resources/config/mimetypemapping.dist.json4
-rw-r--r--tests/lib/Files/Type/DetectionTest.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/resources/config/mimetypealiases.dist.json b/resources/config/mimetypealiases.dist.json
index 1840dca5fb9..68d39650ad9 100644
--- a/resources/config/mimetypealiases.dist.json
+++ b/resources/config/mimetypealiases.dist.json
@@ -13,6 +13,7 @@
"application/font-sfnt": "image",
"application/font-woff": "image",
"application/gpx+xml": "location",
+ "application/gzip": "package/x-generic",
"application/illustrator": "image",
"application/javascript": "text/code",
"application/json": "text/code",
@@ -80,7 +81,7 @@
"application/x-fictionbook+xml": "text",
"application/x-font": "image",
"application/x-gimp": "image",
- "application/x-gzip": "package/x-generic",
+ "application/x-gzip": "application/gzip",
"application/x-iwork-keynote-sffkey": "x-office/presentation",
"application/x-iwork-numbers-sffnumbers": "x-office/spreadsheet",
"application/x-iwork-pages-sffpages": "x-office/document",
@@ -115,4 +116,3 @@
"application/vnd.openxmlformats-officedocument.wordprocessingml.document.oform": "x-office/form",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxf": "x-office/form-template"
}
-
diff --git a/resources/config/mimetypemapping.dist.json b/resources/config/mimetypemapping.dist.json
index 1c1a0f93c43..ff321657da5 100644
--- a/resources/config/mimetypemapping.dist.json
+++ b/resources/config/mimetypemapping.dist.json
@@ -65,8 +65,8 @@
"fodt": ["application/vnd.oasis.opendocument.text-flat-xml"],
"gif": ["image/gif"],
"gpx": ["application/gpx+xml"],
- "gz": ["application/x-gzip"],
- "gzip": ["application/x-gzip"],
+ "gz": ["application/gzip"],
+ "gzip": ["application/gzip"],
"h": ["text/x-h"],
"heic": ["image/heic"],
"heif": ["image/heif"],
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'],