From: Fabian Keil Date: Wed, 6 Jan 2021 16:52:38 +0000 (+0100) Subject: chat(): Use client_use_ssl(csp) instead of http->ssl X-Git-Tag: v_3_0_30~142 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=aa5ec3cea82a006dbc031c8fdde5a26fcefa2c18 chat(): Use client_use_ssl(csp) instead of http->ssl ... in a place where it is more appropriate. Currently the difference doesn't matter, but it will when we start supporting upgrading the protocol from http to https behind the client's back. --- diff --git a/jcc.c b/jcc.c index 04fd5b6b..a5e561f5 100644 --- a/jcc.c +++ b/jcc.c @@ -4256,7 +4256,7 @@ static void chat(struct client_state *csp) } #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ #ifdef FEATURE_HTTPS_INSPECTION - if (http->ssl && !use_ssl_tunnel) + if (client_use_ssl(csp) && !use_ssl_tunnel) { int ret; /*