mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
make sure to flush underlying stream
This commit is contained in:
parent
bbebf15fce
commit
fca8ba46e1
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ let encode_deflate_writer_ ~buf_size (w : W.t) : W.t =
|
||||||
let oc' = Iostream_camlzip.compressed_out ~buf_size ~level:4 oc in
|
let oc' = Iostream_camlzip.compressed_out ~buf_size ~level:4 oc in
|
||||||
write (oc' :> IO.Output.t);
|
write (oc' :> IO.Output.t);
|
||||||
IO.Output.flush oc';
|
IO.Output.flush oc';
|
||||||
IO.Output.close oc'
|
IO.Output.close oc';
|
||||||
|
IO.Output.flush oc
|
||||||
in
|
in
|
||||||
IO.Writer.make ~write:write' ()
|
IO.Writer.make ~write:write' ()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue