Fix #1533
This commit is contained in:
parent
4cf218643e
commit
f4b02dfdc1
@ -6826,6 +6826,8 @@ inline bool ClientImpl::process_request(Stream &strm, Request &req,
|
||||
|
||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||
if (is_ssl()) {
|
||||
auto is_proxy_enabled = !proxy_host_.empty() && proxy_port_ != -1;
|
||||
if (!is_proxy_enabled) {
|
||||
char buf[1];
|
||||
if (SSL_peek(socket_.ssl, buf, 1) == 0 &&
|
||||
SSL_get_error(socket_.ssl, 0) == SSL_ERROR_ZERO_RETURN) {
|
||||
@ -6833,6 +6835,7 @@ inline bool ClientImpl::process_request(Stream &strm, Request &req,
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Receive response and headers
|
||||
|
Loading…
x
Reference in New Issue
Block a user