diff --git a/src/http/Client.zig b/src/http/Client.zig index 0e2e0815..f59ad0a0 100644 --- a/src/http/Client.zig +++ b/src/http/Client.zig @@ -331,7 +331,8 @@ pub fn restoreOriginalProxy(self: *Client) !void { // Enable TLS verification on all connections. pub fn enableTlsVerify(self: *const Client) !void { - try self.ensureNoActiveConnection(); + // Remove inflight connections check on enable TLS b/c chromiumoxide calls + // the command during navigate and Curl seems to accept it... for (self.handles.handles) |*h| { const easy = h.conn.easy; @@ -348,7 +349,8 @@ pub fn enableTlsVerify(self: *const Client) !void { // Disable TLS verification on all connections. pub fn disableTlsVerify(self: *const Client) !void { - try self.ensureNoActiveConnection(); + // Remove inflight connections check on disable TLS b/c chromiumoxide calls + // the command during navigate and Curl seems to accept it... for (self.handles.handles) |*h| { const easy = h.conn.easy;