mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-04 21:20:54 +08:00
修复https 302 跳转http相关bug
This commit is contained in:
@@ -16,6 +16,8 @@ namespace mediakit {
|
||||
|
||||
void HttpClientImp::onConnect(const SockException &ex) {
|
||||
if (!isHttps()) {
|
||||
//https 302跳转 http时,需要关闭ssl
|
||||
setDoNotUseSSL();
|
||||
HttpClient::onConnect(ex);
|
||||
} else {
|
||||
TcpClientWithSSL<HttpClient>::onConnect(ex);
|
||||
|
||||
Reference in New Issue
Block a user