From 4f62cc833bba6e2fed9a8fe48970f1ceb42acdee Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Tue, 21 Oct 2025 13:47:09 +0200 Subject: [PATCH] http: fix VERIFY_HOST value --- src/http/Client.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))); } }