From 38bbad6e8810d864fb421c48f194a5f43820e6b7 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Tue, 8 Jul 2025 09:33:53 +0800 Subject: [PATCH] Revert "fix secure connection logic" This reverts commit b6132f24975027f9c07e3ad4d9b7d0c62552b428. --- src/http/client.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/http/client.zig b/src/http/client.zig index bbdb9876..c3dbb41b 100644 --- a/src/http/client.zig +++ b/src/http/client.zig @@ -711,12 +711,7 @@ pub const Request = struct { } } } - - - if ( - (self._request_secure and !self._proxy_secure) and - (!self._client.isForwardProxy() or self._proxy_secure) - ) { + if (self._request_secure and !self._proxy_secure and !self._client.isForwardProxy()) { self._connection.?.tls = .{ .blocking = try tls.client(std.net.Stream{ .handle = socket }, tls_config), };