commit f27a90cba23761c4cfa9773e5aed0eb53efc2e32 from: Omar Polo date: Fri Dec 22 08:41:11 2023 UTC http: reswriter_flush: don't send end marker unless chunked commit - 05724a920c1e5ed630250a71c903bdd8c9d88113 commit + f27a90cba23761c4cfa9773e5aed0eb53efc2e32 blob - b2f889b18de9196fb34e7eb4af2bbc8bd795fcef blob + 36edb7d99d3da5849db8e892a4b55bd6c4bf12a3 --- http/reswriter.ha +++ http/reswriter.ha @@ -73,7 +73,7 @@ fn reswriter_write(s: *io::stream, buf: const []u8) (s }; fn reswriter_flush(res: *reswriter) (void | io::error) = { - if (res.done && !res.wrotedone) { + if (res.chunked && res.done && !res.wrotedone) { fmt::fprint(&res.dst, "0\r\n\r\n")?; res.wrotedone = true; };