From 18a1a6467a0c0cfcc63829b46d052fb4411f740c Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 22 Jan 2018 10:55:50 +0900 Subject: [PATCH] Add *.js to the extension translation table 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 | 3 ++- packaging/download-provider.spec | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/agent/download-agent-mime-util.c b/agent/download-agent-mime-util.c index f005715..23ba4f5 100755 --- a/agent/download-agent-mime-util.c +++ b/agent/download-agent-mime-util.c @@ -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 diff --git a/packaging/download-provider.spec b/packaging/download-provider.spec index c2ccc08..0bad763 100755 --- a/packaging/download-provider.spec +++ b/packaging/download-provider.spec @@ -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 -- 2.7.4