summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-18 09:02:45 +0100
committerhorchi <vdr@jwendel.de>2017-03-18 09:02:45 +0100
commit7d30c12632dd4df671594767798a876ccf3e5ef6 (patch)
tree8aaf9eae4355c553e55d4950084f0616dadd7a96
parent543cb573da71ff4a1ac54f79509a4d08b004e274 (diff)
downloadvdr-epg-daemon-7d30c12632dd4df671594767798a876ccf3e5ef6.tar.gz
vdr-epg-daemon-7d30c12632dd4df671594767798a876ccf3e5ef6.tar.bz2
reset curl header option
-rw-r--r--lib/curl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/curl.c b/lib/curl.c
index c8dda08..6fc5d9d 100644
--- a/lib/curl.c
+++ b/lib/curl.c
@@ -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