diff --git a/src/http/Client.zig b/src/http/Client.zig index 0a80b474..4487f9a6 100644 --- a/src/http/Client.zig +++ b/src/http/Client.zig @@ -341,11 +341,11 @@ pub fn enableTlsVerify(self: *const Client) !void { for (self.handles.handles) |*h| { const easy = h.conn.easy; - try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_SSL_VERIFYHOST, @as(c_long, 1))); + try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_SSL_VERIFYHOST, @as(c_long, 2))); try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_SSL_VERIFYPEER, @as(c_long, 1))); if (self.use_proxy) { - try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_PROXY_SSL_VERIFYHOST, @as(c_long, 1))); + try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_PROXY_SSL_VERIFYHOST, @as(c_long, 2))); try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_PROXY_SSL_VERIFYPEER, @as(c_long, 1))); } }