修复https 302 跳转http相关bug

This commit is contained in:
xiongziliang 2022-05-13 23:24:17 +08:00
parent dd8b4783b7
commit 3e869c1f1d

View File

@ -16,6 +16,8 @@ namespace mediakit {
void HttpClientImp::onConnect(const SockException &ex) { void HttpClientImp::onConnect(const SockException &ex) {
if (!isHttps()) { if (!isHttps()) {
//https 302跳转 http时需要关闭ssl
setDoNotUseSSL();
HttpClient::onConnect(ex); HttpClient::onConnect(ex);
} else { } else {
TcpClientWithSSL<HttpClient>::onConnect(ex); TcpClientWithSSL<HttpClient>::onConnect(ex);