Skip to content

Commit 2674c8a

Browse files
committed
HttpRequest
1 parent c7d311e commit 2674c8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AudioTools/CoreAudio/AudioHttp/HttpRequest.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ class HttpRequest : public BaseStream {
303303
TRACED();
304304
// if sending is chunked we terminate with an empty chunk
305305
if (isChunked()) {
306-
write(nullptr, 0);
306+
if (is_chunked_output_active) client_ptr->println(0, HEX);
307+
client_ptr->println();
308+
is_chunked_output_active = false;
307309
}
308310
LOGI("Request written ... waiting for reply");
309311
// Commented out because this breaks the RP2040 W

0 commit comments

Comments
 (0)