We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3547b commit 4adb9e8Copy full SHA for 4adb9e8
src/extensions/deflatemod.ml
@@ -71,7 +71,9 @@ let write_int32 buf offset n =
71
72
let compress_flush oz used_out =
73
Logs.debug ~src:section (fun fmt -> fmt "Flushing %d bytes" used_out);
74
- oz.flush (Bytes.sub_string oz.buf 0 used_out)
+ if used_out > 0
75
+ then oz.flush (Bytes.sub_string oz.buf 0 used_out)
76
+ else Lwt.return_unit
77
78
(* gzip trailer *)
79
let write_trailer oz =
0 commit comments