We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f62cc8 commit 6915738Copy full SHA for 6915738
src/http/Client.zig
@@ -338,6 +338,8 @@ pub fn restoreOriginalProxy(self: *Client) !void {
338
339
// Enable TLS verification on all connections.
340
pub fn enableTlsVerify(self: *const Client) !void {
341
+ try self.ensureNoActiveConnection();
342
+
343
for (self.handles.handles) |*h| {
344
const easy = h.conn.easy;
345
@@ -353,6 +355,8 @@ pub fn enableTlsVerify(self: *const Client) !void {
353
355
354
356
// Disable TLS verification on all connections.
357
pub fn disableTlsVerify(self: *const Client) !void {
358
359
360
361
362
0 commit comments