HTTP: 优化http客户端代码,并修复重定向时超时的bug: #1306

This commit is contained in:
ziyue
2021-12-24 11:22:17 +08:00
parent 4e01c29833
commit f89abfaf67
3 changed files with 73 additions and 78 deletions

View File

@@ -13,7 +13,7 @@
namespace mediakit {
void HttpClientImp::onConnect(const SockException &ex) {
if(!_isHttps){
if(!_is_https){
HttpClient::onConnect(ex);
} else {
TcpClientWithSSL<HttpClient>::onConnect(ex);