diff options
author | horchi <vdr@jwendel.de> | 2018-10-02 19:21:14 +0200 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-10-02 19:21:14 +0200 |
commit | bd6ac8b88a6e128ad8778aad89f5d8c3f31148de (patch) | |
tree | c5e044200fc3101d6d14452aadc04b524883281b /lib/curl.c | |
parent | 1cbab41a38411ded875924d8b3cdaba68bafd574 (diff) | |
download | vdr-epg-daemon-bd6ac8b88a6e128ad8778aad89f5d8c3f31148de.tar.gz vdr-epg-daemon-bd6ac8b88a6e128ad8778aad89f5d8c3f31148de.tar.bz2 |
2018-10-02: version 1.1.143 (horchi)\n change: Fixed compile problem of epglv \n \n1.1.143
Diffstat (limited to 'lib/curl.c')
-rw-r--r-- | lib/curl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -120,6 +120,7 @@ int cCurl::init(const char* httpproxy) curl_easy_setopt(handle, CURLOPT_TIMEOUT, 30); // Set timeout curl_easy_setopt(handle, CURLOPT_NOBODY, 0); // curl_easy_setopt(handle, CURLOPT_USERAGENT, CURL_USERAGENT); // Some servers don't like requests + curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, ""); return success; } @@ -437,7 +438,8 @@ int cCurl::downloadFile(const char* url, int& size, MemoryStruct* data, int time curl_easy_setopt(handle, CURLOPT_TIMEOUT, timeout); // Set timeout curl_easy_setopt(handle, CURLOPT_NOBODY, data->headerOnly ? 1 : 0); // curl_easy_setopt(handle, CURLOPT_USERAGENT, userAgent); // Some servers don't like requests without a user-agent field - curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "gzip"); // +// curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "gzip"); // + curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, ""); if (headerlist) curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headerlist); |