Skip to content

Commit def79ed

Browse files
committed
try to workarround broken proxy
1 parent 61de346 commit def79ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Downloader/CurlWrapper.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,12 @@ CURL* CurlWrapper::CurlInit()
1919
curl_easy_setopt(ret, CURLOPT_USERAGENT, getVersion());
2020
curl_easy_setopt(ret, CURLOPT_FAILONERROR, true);
2121
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+
2229
return ret;
2330
}

0 commit comments

Comments
 (0)