File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ # v0.2.1
2
+ * Fix zlib formatting in gzip (de)compression
3
+
1
4
# v0.2.0
2
5
* Use ` Zlib ` from camlzip rather than cryptokit + crc
3
6
* Allow capping the size of decompressed content
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ module Z = struct
46
46
47
47
let error e = R. error (`Zlib e)
48
48
49
- let compress_zlib ?level ?header input output =
49
+ let compress_zlib ?level ?( header = false ) input output =
50
50
let pos = ref 0 in
51
51
let length = String. length input in
52
52
let feed buf =
@@ -55,10 +55,10 @@ module Z = struct
55
55
pos := ! pos + bytes ;
56
56
bytes
57
57
in
58
- Zlib. compress ?level ? header feed output
58
+ Zlib. compress ?level ~ header feed output
59
59
60
60
61
- let uncompress_zlib ?header input output =
61
+ let uncompress_zlib ?( header = false ) input output =
62
62
let pos = ref 0 in
63
63
let length = String. length input in
64
64
let feed buf =
@@ -67,7 +67,7 @@ module Z = struct
67
67
pos := ! pos + bytes ;
68
68
bytes
69
69
in
70
- Zlib. uncompress ? header feed output
70
+ Zlib. uncompress ~ header feed output
71
71
72
72
73
73
let compress ?level ?header input =
You can’t perform that action at this time.
0 commit comments