We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61de346 commit def79edCopy full SHA for def79ed
src/Downloader/CurlWrapper.cpp
@@ -19,5 +19,12 @@ CURL* CurlWrapper::CurlInit()
19
curl_easy_setopt(ret, CURLOPT_USERAGENT, getVersion());
20
curl_easy_setopt(ret, CURLOPT_FAILONERROR, true);
21
curl_easy_setopt(ret, CURLOPT_FOLLOWLOCATION, 1);
22
+
23
+ struct curl_slist *list = NULL;
24
+ list = curl_slist_append(list, "Cache-Control: no-cache");
25
+ curl_easy_setopt(ret, CURLOPT_HTTPHEADER, list);
26
+//FIXME: memleak, has to be freed at shutdown
27
+// curl_slist_free_all(list); /* free the list again */
28
29
return ret;
30
}
0 commit comments