diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp index a1cf1ef..cc08910 100644 --- a/src/curl_wrapper.cpp +++ b/src/curl_wrapper.cpp @@ -115,6 +115,13 @@ string CURLWrapper::make_http_request(http_method method, string_view uri) break; } + case http_method::HEAD: + { + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) + check(curl_easy_setopt(_connection, CURLOPT_CUSTOMREQUEST, "HEAD")); + + break; + } case http_method::PATCH: { // NOTE: Use CURLOPT_MIMEPOST, then set to PATCH to send data.