Skip to content

Commit b387fd2

Browse files
Update src/http/client.zig
Co-authored-by: Sjors <[email protected]>
1 parent 795c925 commit b387fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/client.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ pub const Request = struct {
801801
}
802802

803803
const is_proxy = self._client.isProxy();
804-
if ((is_proxy and self._proxy_secure) or (!is_proxy and self._request_secure)) {
804+
if ((is_proxy and self._proxy_secure) or (!self._client.isForwardProxy() and self._request_secure)) {
805805
if (self._connection_from_keepalive) {
806806
// If the connection came from the keepalive pool, than we already
807807
// have a TLS Connection.

0 commit comments

Comments
 (0)