Removed CURLOPT_FAILONERROR 32/166632/1
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 11 Jan 2018 08:11:34 +0000 (17:11 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 11 Jan 2018 08:11:34 +0000 (17:11 +0900)
 - https://curl.haxx.se/libcurl/c/CURLOPT_FAILONERROR.html
 - This option is not necessary. culr default is false for the option
 - This option can occur disconnection by http response, not problem

Change-Id: I31e29c323154c2d92b481507ce8bb57d5a42d233

platform-abstractions/tizen/resource-loader/network/file-download.cpp

index 1908597..b276678 100755 (executable)
@@ -63,7 +63,7 @@ void ConfigureCurlOptions( CURL* curlHandle, const std::string& url )
   curl_easy_setopt( curlHandle, CURLOPT_VERBOSE, VERBOSE_MODE );
 
   // CURLOPT_FAILONERROR is not fail-safe especially when authentication is involved ( see manual )
-  curl_easy_setopt( curlHandle, CURLOPT_FAILONERROR, CLOSE_CONNECTION_ON_ERROR );
+  // Removed CURLOPT_FAILONERROR option
   curl_easy_setopt( curlHandle, CURLOPT_CONNECTTIMEOUT, CONNECTION_TIMEOUT_SECONDS );
   curl_easy_setopt( curlHandle, CURLOPT_HEADER, INCLUDE_HEADER );
   curl_easy_setopt( curlHandle, CURLOPT_NOBODY, EXCLUDE_BODY );