Fix: add fallback for tga image
This commit is contained in:
@@ -231,6 +231,10 @@ public class Utils {
|
|||||||
if (mimeType == null) {
|
if (mimeType == null) {
|
||||||
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