diff options
author | horchi <vdr@jwendel.de> | 2017-03-20 18:03:45 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-20 18:03:45 +0100 |
commit | dfdedfcafbca62a0a5a327b6ee1b453e0341a753 (patch) | |
tree | e2ba4f9bdd35f8b8291eabd677e6fac2c1ccd98d /lib/curl.c | |
parent | 42b9898a8a4a07a3134dadce5d24618a0c402fd1 (diff) | |
parent | 4ab12d84b2738fbfc9aafed6b4710180aa2d37e4 (diff) | |
download | vdr-epg-daemon-dfdedfcafbca62a0a5a327b6ee1b453e0341a753.tar.gz vdr-epg-daemon-dfdedfcafbca62a0a5a327b6ee1b453e0341a753.tar.bz2 |
2017-03-20: version 1.1.113 (horchi)\n -added: Add validity check of the API key for https://www.themoviedb.org (by 3po)\n - change: Removed compiler warnings when using clang\n - added: Added clang++ to Make.config (as optional compiler)\n\n
Diffstat (limited to 'lib/curl.c')
-rw-r--r-- | lib/curl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -108,6 +108,7 @@ int cCurl::init(const char* httpproxy) curl_easy_setopt(handle, CURLOPT_PROXY, httpproxy); // Specify HTTP proxy } + curl_easy_setopt(handle, CURLOPT_HTTPHEADER, 0); curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, collect_data); curl_easy_setopt(handle, CURLOPT_WRITEDATA, 0); // Set option to write to string curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, yes); @@ -439,7 +440,7 @@ int cCurl::downloadFile(const char* url, int& size, MemoryStruct* data, int time curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "gzip"); // if (headerlist) - curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headerlist); + curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headerlist); // perform http-get |