1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

fix master server communication

This commit is contained in:
IntelOrca
2015-11-08 03:55:30 +00:00
parent 0b9882b96f
commit d2aa736492
3 changed files with 23 additions and 13 deletions

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");