Skip to content

Commit 175a017

Browse files
committed
fix(http): Replace flush() with clear() in HTTPClient
Following deprecation of flush()
1 parent b2c805a commit 175a017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/HTTPClient/src/HTTPClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void HTTPClient::disconnect(bool preserveClient) {
371371
if (connected()) {
372372
if (_client->available() > 0) {
373373
log_d("still data in buffer (%d), clean up.\n", _client->available());
374-
_client->flush();
374+
_client->clear();
375375
}
376376

377377
if (_reuse && _canReuse) {

0 commit comments

Comments
 (0)