From daf219aaeb0e58d37c28192203255281a16ef862 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 21 Nov 2024 06:00:02 -0500 Subject: [PATCH] Fix deprecated PUT macro from cURL. --- src/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");