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