Skip to content

Commit 254c5e4

Browse files
authored
fix(http): Replace flush() with clear() in HTTPClient (#10269)
Following deprecation of flush()
1 parent 4c1095b commit 254c5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)