mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-03 13:56:32 +02:00
Fix HTTP client returning disconnected when there is still data avalable
This commit is contained in:
@ -252,7 +252,7 @@ void HTTPClient::end(void)
|
|||||||
bool HTTPClient::connected()
|
bool HTTPClient::connected()
|
||||||
{
|
{
|
||||||
if(_tcp) {
|
if(_tcp) {
|
||||||
return (_tcp->connected() || (_tcp->available() > 0));
|
return ((_tcp->available() > 0) || _tcp->connected());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user