summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/curl_wrapper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp
index 04e9015..130a27f 100644
--- a/src/curl_wrapper.cpp
+++ b/src/curl_wrapper.cpp
@@ -65,6 +65,12 @@ answer_type CURLWrapper::make_request(const http_method &method,
code = curl_easy_setopt(_connection, CURLOPT_CUSTOMREQUEST, "PATCH");
break;
}
+ case http_method::PUT:
+ {
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
+ code = curl_easy_setopt(_connection, CURLOPT_UPLOAD, 1L);
+ break;
+ }
case http_method::DELETE:
{
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)