From 6f03c521a699d243128bef390612b745dc8fdaf3 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Sat, 4 Feb 2023 23:52:30 -0500 Subject: [PATCH] fix missing closing crlf in chunked streams --- src/Tiny_httpd_stream.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tiny_httpd_stream.ml b/src/Tiny_httpd_stream.ml index 9490e016..f55b0b29 100644 --- a/src/Tiny_httpd_stream.ml +++ b/src/Tiny_httpd_stream.ml @@ -327,4 +327,6 @@ let output_chunked (oc:out_channel) (self:t) : unit = ); output_string oc "\r\n"; done; + (* write another crlf after the stream (see #56) *) + output_string oc "\r\n"; ()