mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
14 lines
515 B
Diff
14 lines
515 B
Diff
diff -Naur old/src/ccurl_thread.cc new/src/ccurl_thread.cc
|
|
--- old/src/ccurl_thread.cc 2015-06-21 14:49:06.000000000 -1000
|
|
+++ new/src/ccurl_thread.cc 2015-07-11 09:11:49.053040998 -1000
|
|
@@ -119,9 +119,7 @@
|
|
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) {
|