fix TSAM-6105 of jira issue 31/79431/1 accepted/tizen/common/20160711.170939 accepted/tizen/ivi/20160712.000020 accepted/tizen/mobile/20160711.235740 accepted/tizen/tv/20160711.235946 accepted/tizen/wearable/20160711.235911 submit/tizen/20160711.100924
authorjaekuk, lee <juku1999@samsung.com>
Mon, 11 Jul 2016 10:01:47 +0000 (19:01 +0900)
committerjaekuk, lee <juku1999@samsung.com>
Mon, 11 Jul 2016 10:01:47 +0000 (19:01 +0900)
Change-Id: Ibdae2566b83d5c2915a70382fc1c3cd49bd78ff4
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
agent/download-agent-file.c
packaging/download-provider.spec

index 71c880b..a7f5476 100755 (executable)
@@ -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);
        }
index f8d9669..d2d3be8 100755 (executable)
@@ -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