Skip to content

Commit ff90778

Browse files
committed
Fix HTTP client returning disconnected when there is still data avalable
1 parent 4e9d1ee commit ff90778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎libraries/HTTPClient/src/HTTPClient.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void HTTPClient::end(void)
252252
boolHTTPClient::connected()
253253
{
254254
if(_tcp){
255-
return (_tcp->connected() || (_tcp->available() > 0));
255+
return ((_tcp->available() > 0) || _tcp->connected());
256256
}
257257
returnfalse;
258258
}

0 commit comments

Comments
(0)