[DF180327-00886] Add *.xml to the extension translation table 97/174497/1
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 2 Apr 2018 10:52:05 +0000 (19:52 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 2 Apr 2018 10:52:08 +0000 (19:52 +0900)
Change-Id: I99a46e91f176669155f85c09c1bf74085133f97b

agent/download-agent-mime-util.c

index 23ba4f5..d37e5f8 100755 (executable)
@@ -27,7 +27,7 @@
 #define IS_SPACE_CHARACTER(c)  ((c) == '\t')
 
 #define MAX_EXT_NAME_LEN 12
-#define MAX_EXT_TABLE_INDEX 17
+#define MAX_EXT_TABLE_INDEX 18
 Ext_translation_table ext_trans_table[MAX_EXT_TABLE_INDEX] = {
        {"*.xla",                       "*.xls"},
        {"*.pot",                       "*.ppt"},
@@ -46,6 +46,7 @@ Ext_translation_table ext_trans_table[MAX_EXT_TABLE_INDEX] = {
        {"*.mp2",                       "*.mpg"},
        {"*.divx",                      "*.avi"},//15
        {"*.jsm",                       "*.js"},
+       {"*.xsd",                       "*.xml"},
 };
 /* This is samsung mime policy
  * 1. if the mime is audio/m4a, the extension name is defined as "m4a" for launching music player