Add *.js to the extension translation table 66/167766/1 accepted/tizen/unified/20180123.061103 submit/tizen/20180122.051654
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 22 Jan 2018 01:55:50 +0000 (10:55 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 22 Jan 2018 01:55:55 +0000 (10:55 +0900)
If MIME type is 'application/javascript', *.jsm and *.js can be used as file extension.
*.js is added to the extension translation table to avoid using *.jsm.

Change-Id: I0f6b12008f6fb2d23473b271d66bb22cce38e054

agent/download-agent-mime-util.c
packaging/download-provider.spec

index f005715..23ba4f5 100755 (executable)
@@ -27,7 +27,7 @@
 #define IS_SPACE_CHARACTER(c)  ((c) == '\t')
 
 #define MAX_EXT_NAME_LEN 12
-#define MAX_EXT_TABLE_INDEX 16
+#define MAX_EXT_TABLE_INDEX 17
 Ext_translation_table ext_trans_table[MAX_EXT_TABLE_INDEX] = {
        {"*.xla",                       "*.xls"},
        {"*.pot",                       "*.ppt"},
@@ -45,6 +45,7 @@ Ext_translation_table ext_trans_table[MAX_EXT_TABLE_INDEX] = {
        {"*.3g2",                       "*.3gp"},
        {"*.mp2",                       "*.mpg"},
        {"*.divx",                      "*.avi"},//15
+       {"*.jsm",                       "*.js"},
 };
 /* This is samsung mime policy
  * 1. if the mime is audio/m4a, the extension name is defined as "m4a" for launching music player
index c2ccc08..0bad763 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.90
+Version:    2.1.91
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0