We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f474d1 commit d9afbc7Copy full SHA for d9afbc7
1 file changed
src/generic/CurlClient.cpp
@@ -178,6 +178,9 @@ HTTPSClient::Reply CurlClient::request(const HTTPSClient::Request &req)
178
newHeaders["Content-Type"] = "application/x-www-form-urlencoded";
179
}
180
181
+ if (method == "HEAD")
182
+ curl.easy_setopt(handle, CURLOPT_NOBODY, 1L);
183
+
184
// Curl doesn't copy memory, keep the strings around
185
std::vector<std::string> lines;
186
for (auto &header : newHeaders)
0 commit comments