Skip to content

Commit

Permalink
fixed a type check to be case-insensitive (#2202)
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Jun 7, 2019
1 parent 6bd2e18 commit 2de1761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public static String getFacetFileType(DataFile dataFile) {
// in order to capitalize all the unknown types that are not called
// out in MimeTypeFacets.properties
String typeClass = fileType.split("/")[0];
if ("Application".equals(typeClass)) {
if ("application".equalsIgnoreCase(typeClass)) {
return FILE_FACET_CLASS_OTHER;
}
return Character.toUpperCase(typeClass.charAt(0)) + typeClass.substring(1);
Expand Down

0 comments on commit 2de1761

Please sign in to comment.