Skip to content

Commit

Permalink
Add wildcard mimetype for audios, videos and texts
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Feb 15, 2021
1 parent b21d763 commit 7ac46f7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ private static String getMimeTypeColumn(String line) {
xmlExtensions.add("ent");
knownTypes.get("application/xml").setExtensions(xmlExtensions);

knownTypes.put("audio/*", new MimeType("audio/*", Collections.emptyList()));
knownTypes.put("image/*", new MimeType("image/*", Collections.emptyList()));
knownTypes.put("text/*", new MimeType("text/*", Collections.emptyList()));
knownTypes.put("video/*", new MimeType("video/*", Collections.emptyList()));

extensionMapping = new HashMap<>();
for (Map.Entry<String, MimeType> entry : knownTypes.entrySet()) {
Expand Down

0 comments on commit 7ac46f7

Please sign in to comment.