mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-30 07:10:54 +08:00
修复https 302 跳转http相关bug
This commit is contained in:
parent
dd8b4783b7
commit
3e869c1f1d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user