forked from lix-project/lix
Fix random failures caused by CurlDownloader modifying a shared string
This commit is contained in:
parent
ea8e8df6c7
commit
e19c90fc6b
|
@ -157,7 +157,7 @@ struct CurlDownloader : public Downloader
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
data->clear();
|
data = make_ref<std::string>();
|
||||||
|
|
||||||
if (requestHeaders) {
|
if (requestHeaders) {
|
||||||
curl_slist_free_all(requestHeaders);
|
curl_slist_free_all(requestHeaders);
|
||||||
|
|
Loading…
Reference in a new issue