We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63fbe77 commit 81d99abCopy full SHA for 81d99ab
src/main/java/jenkins/scm/api/SCMFile.java
@@ -418,11 +418,7 @@ private static String getMimeType(@NonNull String fileName) {
418
419
WebApp webApp = WebApp.getCurrent();
420
421
- String extension = fileName.substring(fileName.lastIndexOf('.') + 1);
422
- String mimeType = webApp.mimeTypes.get(extension);
423
- if (mimeType == null) {
424
- mimeType = webApp.context.getMimeType(fileName);
425
- }
+ String mimeType = webApp.context.getMimeType(fileName);
426
if (mimeType == null) {
427
mimeType = "application/octet-stream";
428
}
0 commit comments