From d414f85ec090a7b9808928ae5ca13d428f7b1752 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 22 Dec 2018 21:25:39 +0100 Subject: [PATCH] change epub file extension to epub and added mobi --- src/main/java/eu/siacs/conversations/utils/MimeUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/MimeUtils.java b/src/main/java/eu/siacs/conversations/utils/MimeUtils.java index 7fecc8fc8..59ad512c5 100644 --- a/src/main/java/eu/siacs/conversations/utils/MimeUtils.java +++ b/src/main/java/eu/siacs/conversations/utils/MimeUtils.java @@ -51,7 +51,7 @@ public final class MimeUtils { // by guessExtensionFromMimeType. add("application/andrew-inset", "ez"); add("application/dsptype", "tsp"); - add("application/epub+zip","pub"); + add("application/epub+zip","epub"); add("application/hta", "hta"); add("application/mac-binhex40", "hqx"); add("application/mathematica", "nb"); @@ -181,6 +181,7 @@ public final class MimeUtils { add("application/x-maker", "book"); add("application/x-maker", "fbdoc"); add("application/x-mif", "mif"); + add("application/x-mobipocket-ebook","mobi"); add("application/x-ms-wmd", "wmd"); add("application/x-ms-wmz", "wmz"); add("application/x-msi", "msi");