Skip to content
Snippets Groups Projects
Commit e7d02825 authored by tpylak's avatar tpylak
Browse files

minor: handle PNG mimetype in DSS

SVN: 15564
parent ac1f6d74
No related branches found
No related tags found
No related merge requests found
......@@ -200,9 +200,13 @@ abstract public class AbstractDatasetDownloadServlet extends HttpServlet
return BINARY_CONTENT_TYPE;
} else
{
if (FilenameUtils.getExtension(f.getName()).length() == 0)
String extension = FilenameUtils.getExtension(f.getName());
if (extension.length() == 0)
{
return PLAIN_TEXT_CONTENT_TYPE;
} else if (extension.equalsIgnoreCase("png"))
{
return CONTENT_TYPE_PNG;
} else
{
return MIMETYPES.getContentType(f.getName().toLowerCase());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment