소스 검색

Fix incorrect ctype

Pascal Peridont 17 년 전
부모
커밋
429088bf9d
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      std/mtwin/mail/Part.hx

+ 4 - 1
std/mtwin/mail/Part.hx

@@ -361,7 +361,10 @@ class MetaPart<T> {
 		if( hctype != null ){
 			var t = hctype.value.split("/");
 			ctype0 = StringTools.trim(t[0]).toLowerCase();
-			ctype1 = StringTools.trim(t[1]).toLowerCase();
+			if( t.length > 1 )
+				ctype1 = StringTools.trim(t[1]).toLowerCase();
+			else
+				ctype1 = "";
 
 			if( hctype.params.exists("charset") ){
 				charset = hctype.params.get("charset");