Unify codes

This commit is contained in:
Xie Han
2023-02-10 17:28:15 +08:00
parent 6d3158a09c
commit 06fe4ca7be
+1 -4
View File
@@ -550,10 +550,7 @@ CommMessageIn *ComplexHttpProxyTask::message_in()
return get_ssl_handshaker();
auto *msg = (ProtocolMessage *)this->ComplexHttpTask::message_in();
if (is_ssl_)
return get_ssl_wrapper(msg);
return msg;
return is_ssl_ ? get_ssl_wrapper(msg) : msg;
}
int ComplexHttpProxyTask::keep_alive_timeout()