Browse Source

Fix deprecated PUT macro from cURL.

tags/v2.6.1
Andrew Belt 5 months ago
parent
commit
daf219aaeb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/network.cpp

+ 1
- 1
src/network.cpp View File

@@ -126,7 +126,7 @@ json_t* requestJson(Method method, const std::string& url, json_t* dataJ, const
curl_easy_setopt(curl, CURLOPT_POST, true); curl_easy_setopt(curl, CURLOPT_POST, true);
} }
else if (method == METHOD_PUT) { else if (method == METHOD_PUT) {
curl_easy_setopt(curl, CURLOPT_PUT, true);
curl_easy_setopt(curl, CURLOPT_UPLOAD, true);
} }
else if (method == METHOD_DELETE) { else if (method == METHOD_DELETE) {
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");


Loading…
Cancel
Save