Fix random failures caused by CurlDownloader modifying a shared string

This commit is contained in:
Eelco Dolstra 2016-07-21 18:35:31 +02:00
parent ea8e8df6c7
commit e19c90fc6b

View file

@ -157,7 +157,7 @@ struct CurlDownloader : public Downloader
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
}
data->clear();
data = make_ref<std::string>();
if (requestHeaders) {
curl_slist_free_all(requestHeaders);