From b387fd2bd45292a7d1c6faede602a94869c8154f Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Fri, 11 Jul 2025 17:38:31 +0800 Subject: [PATCH] Update src/http/client.zig Co-authored-by: Sjors <72333389+sjorsdonkers@users.noreply.github.com> --- src/http/client.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/client.zig b/src/http/client.zig index 81c84394..41f432a6 100644 --- a/src/http/client.zig +++ b/src/http/client.zig @@ -801,7 +801,7 @@ pub const Request = struct { } const is_proxy = self._client.isProxy(); - if ((is_proxy and self._proxy_secure) or (!is_proxy and self._request_secure)) { + if ((is_proxy and self._proxy_secure) or (!self._client.isForwardProxy() and self._request_secure)) { if (self._connection_from_keepalive) { // If the connection came from the keepalive pool, than we already // have a TLS Connection.