diff --git a/src/ccurl_thread.cc b/src/ccurl_thread.cc index acf62b42..02cee57b 100644 --- a/src/ccurl_thread.cc +++ b/src/ccurl_thread.cc @@ -119,9 +119,7 @@ namespace priv { headers.h = curl_slist_append(headers.h, ("If-None-Match: " + etag).c_str()); etag.clear(); } - if (headers.h) { - curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers.h); - } + curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers.h); res = curl_easy_perform(curl); if (res == CURLE_OK) {