From: jaekuk, lee Date: Mon, 11 Jul 2016 10:01:47 +0000 (+0900) Subject: fix TSAM-6105 of jira issue X-Git-Tag: accepted/tizen/common/20160711.170939^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F31%2F79431%2F1;p=platform%2Fframework%2Fweb%2Fdownload-provider.git fix TSAM-6105 of jira issue Change-Id: Ibdae2566b83d5c2915a70382fc1c3cd49bd78ff4 Signed-off-by: jaekuk, lee --- diff --git a/agent/download-agent-file.c b/agent/download-agent-file.c index 71c880b..a7f5476 100755 --- a/agent/download-agent-file.c +++ b/agent/download-agent-file.c @@ -429,7 +429,9 @@ da_ret_t __decide_file_path(da_info_t *da_info) DA_SECURE_LOGI("candidate file name [%s]", file_name); - if (!extension) { + if (!extension + && strncmp(file_info->mime_type, "application/json", strlen("application/json")) + && strncmp(file_info->mime_type, "application/x-xz", strlen("application/x-xz"))) { extension = __get_extension_name(file_info->mime_type, file_name_from_header, url); } diff --git a/packaging/download-provider.spec b/packaging/download-provider.spec index f8d9669..d2d3be8 100755 --- a/packaging/download-provider.spec +++ b/packaging/download-provider.spec @@ -1,7 +1,7 @@ %define _ux_define tizen2.3 Name: download-provider Summary: Download the contents in background -Version: 2.1.56 +Version: 2.1.57 Release: 0 Group: Development/Libraries License: Apache-2.0