Fix: add fallback for tga image
This commit is contained in:
@@ -232,6 +232,10 @@ public class Utils {
|
|||||||
mimeType = URLConnection.guessContentTypeFromName(file);
|
mimeType = URLConnection.guessContentTypeFromName(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mimeType == null && file.endsWith(".tga")) { // fallback for TGA
|
||||||
|
mimeType = "image/tga";
|
||||||
|
}
|
||||||
|
|
||||||
return mimeType;
|
return mimeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user