Do not use CURLAUTH_ANY 42/288342/1
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 8 Feb 2023 13:41:41 +0000 (22:41 +0900)
committerAnjali Nijhara <a.nijhara@samsung.com>
Tue, 14 Feb 2023 08:30:35 +0000 (14:00 +0530)
Curl known issue.
https://curl.se/docs/knownbugs.html#libcurl_can_fail_to_try_alternat

6.6 libcurl can fail to try alternatives with --proxy-any
https://github.com/curl/curl/issues/876

Change-Id: I31ce09e8bb3c8286804224df23e4fbfdba663aa5

agent/download-agent-plugin-libcurl.c
packaging/download-provider.spec

index b1a5398..e3023dd 100755 (executable)
@@ -313,8 +313,6 @@ da_ret_t __set_proxy_on_soup_session(proxy_info_t *proxy_info, CURL *curl)
                if (!strstr(proxy_info->addr, "0.0.0.0")) {
                        curl_easy_setopt(curl, CURLOPT_PROXY, proxy_info->addr);
                        DA_LOGI("proxy[%s] is used.", proxy_info->addr);
-                       if (proxy_info->user_name || proxy_info->password)
-                               curl_easy_setopt(curl, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
                        if (proxy_info->user_name)
                                curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, proxy_info->user_name);
                        if (proxy_info->password)
index ecbd9a4..2e50fcf 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.3.6
+Version:    2.3.7
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0