diff --git a/src/network.cpp b/src/network.cpp index e01e0dda..3629f7e8 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -126,7 +126,7 @@ json_t* requestJson(Method method, const std::string& url, json_t* dataJ, const curl_easy_setopt(curl, CURLOPT_POST, true); } else if (method == METHOD_PUT) { - curl_easy_setopt(curl, CURLOPT_PUT, true); + curl_easy_setopt(curl, CURLOPT_UPLOAD, true); } else if (method == METHOD_DELETE) { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");