Skip to content

Commit b6132f2

Browse files
committed
fix secure connection logic
1 parent 74a299e commit b6132f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/http/client.zig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,12 @@ pub const Request = struct {
711711
}
712712
}
713713
}
714-
if (self._request_secure and !self._proxy_secure and !self._client.isForwardProxy()) {
714+
715+
716+
if (
717+
(self._request_secure and !self._proxy_secure) and
718+
(!self._client.isForwardProxy() or self._proxy_secure)
719+
) {
715720
self._connection.?.tls = .{
716721
.blocking = try tls.client(std.net.Stream{ .handle = socket }, tls_config),
717722
};

0 commit comments

Comments
 (0)