Skip to content

Commit 4f62cc8

Browse files
committed
http: fix VERIFY_HOST value
1 parent d2065f7 commit 4f62cc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http/Client.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,11 @@ pub fn enableTlsVerify(self: *const Client) !void {
341341
for (self.handles.handles) |*h| {
342342
const easy = h.conn.easy;
343343

344-
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_SSL_VERIFYHOST, @as(c_long, 1)));
344+
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_SSL_VERIFYHOST, @as(c_long, 2)));
345345
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_SSL_VERIFYPEER, @as(c_long, 1)));
346346

347347
if (self.use_proxy) {
348-
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_PROXY_SSL_VERIFYHOST, @as(c_long, 1)));
348+
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_PROXY_SSL_VERIFYHOST, @as(c_long, 2)));
349349
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_PROXY_SSL_VERIFYPEER, @as(c_long, 1)));
350350
}
351351
}

0 commit comments

Comments
 (0)