Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c15a6ab authored by Scott Mertz's avatar Scott Mertz
Browse files

Assign application/octet-stream to unknown file extensions

FEIJ-1380
Change-Id: I93eea906f35dc5403349409b1c26e6a4fc386d5a
(cherry picked from commit faa6c468)
parent 36fc2cb1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -491,7 +491,7 @@ public final class MimeTypeHelper {
    private static final String getMimeTypeFromExtension(final FileSystemObject fso) {
        String ext = FileHelper.getExtension(fso);
        if (ext == null) {
            return null;
            return "application/octet-stream";
        }

        // If this extension is ambiguous, attempt to resolve it.
@@ -503,7 +503,7 @@ public final class MimeTypeHelper {
        //Load from the database of mime types
        MimeTypeInfo mimeTypeInfo = getMimeTypeInternal(fso, ext);
        if (mimeTypeInfo == null) {
            return null;
            return "application/octet-stream";
        }

        return mimeTypeInfo.mMimeType;