Let Package-Kit's FetchFileJob handle redirects.
* additionally, drop duplicate setting of CURLOPT_PROGRESSFUNCTION.
This commit is contained in:
@@ -95,8 +95,7 @@ FetchFileJob::Execute()
|
|||||||
if (result != CURLE_OK)
|
if (result != CURLE_OK)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
result = curl_easy_setopt(handle, CURLOPT_PROGRESSFUNCTION,
|
result = curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1);
|
||||||
&_ProgressCallback);
|
|
||||||
if (result != CURLE_OK)
|
if (result != CURLE_OK)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user