fix(http): Replace flush() with clear() in HTTPClient (#10269)

Following deprecation of flush()
This commit is contained in:
Me No Dev 2024-08-31 18:28:22 +03:00 committed by GitHub
parent 4c1095b23f
commit 254c5e43f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -371,7 +371,7 @@ void HTTPClient::disconnect(bool preserveClient) {
if (connected()) {
if (_client->available() > 0) {
log_d("still data in buffer (%d), clean up.\n", _client->available());
_client->flush();
_client->clear();
}
if (_reuse && _canReuse) {