changed myme type at text/plain for error file
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/speciesdiscovery@79447 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
56f4b96727
commit
74e69a11d5
|
@ -2041,16 +2041,17 @@ public class TaxonomySearchServiceImpl extends RemoteServiceServlet implements T
|
|||
|
||||
SpeciesService taxonomyService = getSpeciesService();
|
||||
|
||||
String mimeType = null;
|
||||
|
||||
switch (jobModel.getFileFormat()) {
|
||||
case CSV: {
|
||||
mimeType = "text/csv";
|
||||
} break;
|
||||
case DARWIN_CORE:{
|
||||
mimeType = "application/xhtml+xml";
|
||||
} break;
|
||||
}
|
||||
// String mimeType = null;
|
||||
// switch (jobModel.getFileFormat()) {
|
||||
// case CSV: {
|
||||
// mimeType = "text/csv";
|
||||
// } break;
|
||||
// case DARWIN_CORE:{
|
||||
// mimeType = "application/xhtml+xml";
|
||||
// } break;
|
||||
// }
|
||||
|
||||
String mimeType = "text/plain";
|
||||
|
||||
InputStream inputStream = taxonomyService.getOccurrenceJobErrorFileById(jobModel.getJobIdentifier());
|
||||
|
||||
|
|
Reference in New Issue