Skip to content

Commit 0c0c66f

Browse files
committed
Small modification.
1 parent 09c86f9 commit 0c0c66f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/swindon/core.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[java.util.zip DeflaterInputStream]
55
[java.util.zip DeflaterOutputStream]
66
[java.util.zip InflaterInputStream]
7+
[java.util.zip ZipInputStream]
78
[java.io ByteArrayInputStream]
89
[java.io ByteArrayOutputStream]))
910

@@ -31,7 +32,7 @@
3132
(.toByteArray baos))))
3233

3334
(defn unzip-pkzip [buffer]
34-
(let [bais (ByteArrayInputStream. buffer)
35+
(let [bais (ZipInputStream. (ByteArrayInputStream. buffer))
3536
baos (ByteArrayOutputStream.)]
3637
(org.apache.commons.io.IOUtils/copy bais baos)
3738
(.toByteArray baos)))

0 commit comments

Comments
 (0)