fix master server communication

This commit is contained in:
IntelOrca committed 2015-11-08 04:02:23 +00:00
1 parent 0b9882b96f
commit d2aa736492
3 files changed
+23 -13

No files matched your search

+4
View File
@@ -69,6 +69,10 @@ http_json_response *http_request_json(const char *url)
writeBuffer.length = 0;
writeBuffer.capacity = 0;
curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, true);
curl_easy_setopt(curl, CURLOPT_CAINFO, "curl-ca-bundle.crt");