Recognize application/text in getText()

This commit is contained in:
hns 2003-10-10 19:03:07 +00:00
parent a4e558cb85
commit fa4ce3ed6f

View file

@ -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 {