258: TabMan - the files associated to the resources are downloaded without extension

Task-Url: https://support.d4science.org/issues/258

Added extension to Name of Resource by mime type

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@115424 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-06-18 13:04:16 +00:00
parent de1bc48388
commit ffe00f2cba
1 changed files with 2 additions and 2 deletions

View File

@ -702,7 +702,7 @@ public enum MimeTypeSupport {
public static MimeTypeSupport getMimeTypeSupportFromExtension(String ext){
for(MimeTypeSupport m:MimeTypeSupport.values()){
if(m.getExtension().compareTo(ext)==0){
if(m.getExtension().compareToIgnoreCase(ext)==0){
return m;
}
}
@ -711,7 +711,7 @@ public enum MimeTypeSupport {
public static MimeTypeSupport getMimeTypeSupportFromMimeName(String mimeName){
for(MimeTypeSupport m:MimeTypeSupport.values()){
if(m.getMimeName().compareTo(mimeName)==0){
if(m.getMimeName().compareToIgnoreCase(mimeName)==0){
return m;
}
}