Add HEAD to switch in make_http_request().
This commit is contained in:
parent
0173093d3d
commit
4624d407f2
|
@ -115,6 +115,13 @@ string CURLWrapper::make_http_request(http_method method, string_view uri)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case http_method::HEAD:
|
||||||
|
{
|
||||||
|
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
|
||||||
|
check(curl_easy_setopt(_connection, CURLOPT_CUSTOMREQUEST, "HEAD"));
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
case http_method::PATCH:
|
case http_method::PATCH:
|
||||||
{
|
{
|
||||||
// NOTE: Use CURLOPT_MIMEPOST, then set to PATCH to send data.
|
// NOTE: Use CURLOPT_MIMEPOST, then set to PATCH to send data.
|
||||||
|
|
Loading…
Reference in New Issue