Update src/http/client.zig

Co-authored-by: Sjors <72333389+sjorsdonkers@users.noreply.github.com>
This commit is contained in:
Karl Seguin
2025-07-10 17:10:58 +08:00
committed by GitHub
parent 3049bb0b9f
commit 4a12d045e4

View File

@@ -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 (!is_forward_proxy and self._request_secure)) {
if (self._connection_from_keepalive) {
// If the connection came from the keepalive pool, than we already
// have a TLS Connection.