Skip to content

Commit ca8e69e

Browse files
committed
HttpRequest
1 parent 2674c8a commit ca8e69e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/AudioTools/CoreAudio/AudioHttp/HttpRequest.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ class HttpRequest : public BaseStream {
6262
void end() override {
6363
if (connected()) {
6464
// write final 0 chunk if necessary
65-
if (is_chunked_output_active) client_ptr->println(0, HEX);
66-
client_ptr->flush();
65+
if (is_chunked_output_active) {
66+
client_ptr->println(0, HEX);
67+
client_ptr->println();
68+
client_ptr->flush();
69+
is_chunked_output_active = false;
70+
}
6771
LOGI("stop");
6872
client_ptr->stop();
6973
}

0 commit comments

Comments
 (0)