UI: Allow compressed responses in RemoteTextThread

master
Richard Stanway 2019-02-11 15:09:19 +01:00
parent 47ba3e8c22
commit e0c3e1e957
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ void RemoteTextThread::run()
header = curl_slist_append(header, h.c_str());
curl_easy_setopt(curl.get(), CURLOPT_URL, url.c_str());
curl_easy_setopt(curl.get(), CURLOPT_ACCEPT_ENCODING, "");
curl_easy_setopt(curl.get(), CURLOPT_HTTPHEADER,
header);
curl_easy_setopt(curl.get(), CURLOPT_ERRORBUFFER,
@ -159,6 +160,7 @@ bool GetRemoteFile(
header = curl_slist_append(header, h.c_str());
curl_easy_setopt(curl.get(), CURLOPT_URL, url);
curl_easy_setopt(curl.get(), CURLOPT_ACCEPT_ENCODING, "");
curl_easy_setopt(curl.get(), CURLOPT_HTTPHEADER,
header);
curl_easy_setopt(curl.get(), CURLOPT_ERRORBUFFER,