Skip to content

Commit

Permalink
fix(http): Replace flush() with clear() in HTTPClient (#10269)
Browse files Browse the repository at this point in the history
Following deprecation of flush()
  • Loading branch information
me-no-dev authored Aug 31, 2024
1 parent 4c1095b commit 254c5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/HTTPClient/src/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 254c5e4

Please sign in to comment.