Skip to content

Commit

Permalink
HttpRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 20, 2024
1 parent 2674c8a commit ca8e69e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/AudioTools/CoreAudio/AudioHttp/HttpRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ class HttpRequest : public BaseStream {
void end() override {
if (connected()) {
// write final 0 chunk if necessary
if (is_chunked_output_active) client_ptr->println(0, HEX);
client_ptr->flush();
if (is_chunked_output_active) {
client_ptr->println(0, HEX);
client_ptr->println();
client_ptr->flush();
is_chunked_output_active = false;
}
LOGI("stop");
client_ptr->stop();
}
Expand Down

0 comments on commit ca8e69e

Please sign in to comment.