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)
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user