Recognize application/text in getText()
This commit is contained in:
parent
a4e558cb85
commit
fa4ce3ed6f
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ public class MimePart implements Serializable {
|
|||
* @return ...
|
||||
*/
|
||||
public String getText() {
|
||||
if ((contentType == null) || contentType.startsWith("text/")) {
|
||||
if ((contentType == null) || contentType.startsWith("text/")
|
||||
|| contentType.equals("application/text")) {
|
||||
// FIXME: check for encoding
|
||||
return new String(content);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue