Skip to content

Commit 6a09866

Browse files
committed
http: remove inflight conn check when enable/disable TLS
1 parent 53ccefc commit 6a09866

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/http/Client.zig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ pub fn restoreOriginalProxy(self: *Client) !void {
331331

332332
// Enable TLS verification on all connections.
333333
pub fn enableTlsVerify(self: *const Client) !void {
334-
try self.ensureNoActiveConnection();
334+
// Remove inflight connections check on enable TLS b/c chromiumoxide calls
335+
// the command during navigate and Curl seems to accept it...
335336

336337
for (self.handles.handles) |*h| {
337338
const easy = h.conn.easy;
@@ -348,7 +349,8 @@ pub fn enableTlsVerify(self: *const Client) !void {
348349

349350
// Disable TLS verification on all connections.
350351
pub fn disableTlsVerify(self: *const Client) !void {
351-
try self.ensureNoActiveConnection();
352+
// Remove inflight connections check on disable TLS b/c chromiumoxide calls
353+
// the command during navigate and Curl seems to accept it...
352354

353355
for (self.handles.handles) |*h| {
354356
const easy = h.conn.easy;

0 commit comments

Comments
 (0)