Skip to content

Commit

Permalink
- Fixed bug where response body keeps accumulating characters from th…
Browse files Browse the repository at this point in the history
…e previous request.
  • Loading branch information
piscodev committed Sep 26, 2024
1 parent 4c361b6 commit 3fd7e45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/R4HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ int R4HttpClient::readResponse()
this->headers.clear(); // clear headers after request

// read body
this->body = "";
while (this->client.available())
{
String chunkSizeStr = this->client.readStringUntil('\n');
Expand Down

0 comments on commit 3fd7e45

Please sign in to comment.