diff --git a/src/main/java/jenkins/scm/api/SCMFile.java b/src/main/java/jenkins/scm/api/SCMFile.java index 295f5771..f3053584 100644 --- a/src/main/java/jenkins/scm/api/SCMFile.java +++ b/src/main/java/jenkins/scm/api/SCMFile.java @@ -418,11 +418,7 @@ private static String getMimeType(@NonNull String fileName) { WebApp webApp = WebApp.getCurrent(); - String extension = fileName.substring(fileName.lastIndexOf('.') + 1); - String mimeType = webApp.mimeTypes.get(extension); - if (mimeType == null) { - mimeType = webApp.context.getMimeType(fileName); - } + String mimeType = webApp.context.getMimeType(fileName); if (mimeType == null) { mimeType = "application/octet-stream"; }