We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50e9772 commit 02a70bbCopy full SHA for 02a70bb
libraries/HTTPClient/src/HTTPClient.cpp
@@ -386,9 +386,7 @@ void HTTPClient::disconnect(bool preserveClient)
386
if(connected()) {
387
if(_client->available() > 0) {
388
log_d("still data in buffer (%d), clean up.\n", _client->available());
389
- while(_client->available() > 0) {
390
- _client->read();
391
- }
+ _client->flush();
392
}
393
394
if(_reuse && _canReuse) {
0 commit comments