|
|
@ -160,6 +160,9 @@ public class EntityAttachment {
|
|
|
|
|
|
|
|
|
|
|
|
if ("application/zip".equals(type) ||
|
|
|
|
if ("application/zip".equals(type) ||
|
|
|
|
"application/octet-stream".equals(type)) {
|
|
|
|
"application/octet-stream".equals(type)) {
|
|
|
|
|
|
|
|
if ("log".equalsIgnoreCase(extension))
|
|
|
|
|
|
|
|
return "text/plain";
|
|
|
|
|
|
|
|
|
|
|
|
String gtype = MimeTypeMap.getSingleton()
|
|
|
|
String gtype = MimeTypeMap.getSingleton()
|
|
|
|
.getMimeTypeFromExtension(extension.toLowerCase(Locale.ROOT));
|
|
|
|
.getMimeTypeFromExtension(extension.toLowerCase(Locale.ROOT));
|
|
|
|
if (gtype == null || gtype.equals(type))
|
|
|
|
if (gtype == null || gtype.equals(type))
|
|
|
|