From 2fa930e03b377afcc8944fddec18b34de4a8d00c Mon Sep 17 00:00:00 2001 From: Roman Perekhod Date: Tue, 21 Nov 2023 15:05:44 +0100 Subject: [PATCH] fix the tgz mime type --- changelog/unreleased/fix-tgz-mimetype.md | 6 ++++++ pkg/mime/mime.go | 1 + 2 files changed, 7 insertions(+) create mode 100644 changelog/unreleased/fix-tgz-mimetype.md diff --git a/changelog/unreleased/fix-tgz-mimetype.md b/changelog/unreleased/fix-tgz-mimetype.md new file mode 100644 index 00000000000..aed81798d7e --- /dev/null +++ b/changelog/unreleased/fix-tgz-mimetype.md @@ -0,0 +1,6 @@ +Bugfix: Fix the tgz mime type + +We have fixed a bug when the tgz mime type was not "application/gzip" + +https://github.com/cs3org/reva/pull/4324 +https://github.com/owncloud/ocis/issues/7744 diff --git a/pkg/mime/mime.go b/pkg/mime/mime.go index 0a5ab1ce284..91024917109 100644 --- a/pkg/mime/mime.go +++ b/pkg/mime/mime.go @@ -921,6 +921,7 @@ var mimeTypes = map[string]string{ "tfm": "application/x-tex-tfm", "tfx": "image/tiff-fx", "tga": "image/x-tga", + "tgz": "application/gzip", "thmx": "application/vnd.ms-officetheme", "tif": "image/tiff", "tiff": "image/tiff",