Revert "fix secure connection logic"

This reverts commit b6132f2497.
This commit is contained in:
Karl Seguin
2025-07-08 09:33:53 +08:00
parent b6132f2497
commit 38bbad6e88

View File

@@ -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),
};