mirror of
https://github.com/espressif/arduino-esp32
synced 2024-09-21 02:18:29 +00:00
fix(http): Replace flush() with clear() in HTTPClient (#10269)
Following deprecation of flush()
This commit is contained in:
parent
4c1095b23f
commit
254c5e43f1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user