From 175a01727cac2c5c9ee3cad3dff0d418edd66065 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Fri, 30 Aug 2024 19:58:28 +0300 Subject: [PATCH] fix(http): Replace flush() with clear() in HTTPClient Following deprecation of flush() --- libraries/HTTPClient/src/HTTPClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/HTTPClient/src/HTTPClient.cpp b/libraries/HTTPClient/src/HTTPClient.cpp index 7881a877467..ec812f07201 100644 --- a/libraries/HTTPClient/src/HTTPClient.cpp +++ b/libraries/HTTPClient/src/HTTPClient.cpp @@ -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) {