Let Package-Kit's FetchFileJob handle redirects.

* additionally, drop duplicate setting of CURLOPT_PROGRESSFUNCTION.
This commit is contained in:
Oliver Tappe
2014-07-26 00:20:13 +02:00
parent a0209a665a
commit 42c7371472
+1 -2
View File
@@ -95,8 +95,7 @@ FetchFileJob::Execute()
if (result != CURLE_OK)
return B_ERROR;
result = curl_easy_setopt(handle, CURLOPT_PROGRESSFUNCTION,
&_ProgressCallback);
result = curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1);
if (result != CURLE_OK)
return B_ERROR;