Browse Source

- MIME subtype CPL extended to CPL+XML

Bogdan-Andrei Iancu 22 years ago
parent
commit
6885a4748d
2 changed files with 6 additions and 2 deletions
  1. 5 1
      parser/parse_content.c
  2. 1 1
      parser/parse_content.h

+ 5 - 1
parser/parse_content.c

@@ -97,7 +97,11 @@ static type_node_t subtype_tree[] = {
 			{'p',SUBTYPE_UNKNOWN,2,-1},
 				{'i',SUBTYPE_UNKNOWN,1,9},
 					{'m',SUBTYPE_CPIM,0,-1},
-				{'l',SUBTYPE_CPL,0,-1},
+				{'l',SUBTYPE_UNKNOWN,1,-1},
+					{'+',TYPE_UNKNOWN,1,-1},
+						{'x',TYPE_UNKNOWN,1,-1},
+							{'m',TYPE_UNKNOWN,1,-1},
+								{'l',SUBTYPE_CPLXML,0,-1},
 		{'s',SUBTYPE_UNKNOWN,1,-1},
 			{'d',SUBTYPE_UNKNOWN,1,-1},
 				{'p',SUBTYPE_SDP,0,-1},

+ 1 - 1
parser/parse_content.h

@@ -51,7 +51,7 @@ struct mime_type {
 #define SUBTYPE_PLAIN        1
 #define SUBTYPE_CPIM         2
 #define SUBTYPE_SDP          3
-#define SUBTYPE_CPL          4
+#define SUBTYPE_CPLXML       4
 #define SUBTYPE_ALL          0xfe
 #define SUBTYPE_UNKNOWN      0xff