Unverified Commit 254c5e43 authored by Me No Dev's avatar Me No Dev Committed by GitHub

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

Following deprecation of flush()
parent 4c1095b2
...@@ -371,7 +371,7 @@ void HTTPClient::disconnect(bool preserveClient) { ...@@ -371,7 +371,7 @@ void HTTPClient::disconnect(bool preserveClient) {
if (connected()) { if (connected()) {
if (_client->available() > 0) { if (_client->available() > 0) {
log_d("still data in buffer (%d), clean up.\n", _client->available()); log_d("still data in buffer (%d), clean up.\n", _client->available());
_client->flush(); _client->clear();
} }
if (_reuse && _canReuse) { if (_reuse && _canReuse) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment