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 09c86f9 commit 0c0c66fCopy full SHA for 0c0c66f
src/swindon/core.clj
@@ -4,6 +4,7 @@
4
[java.util.zip DeflaterInputStream]
5
[java.util.zip DeflaterOutputStream]
6
[java.util.zip InflaterInputStream]
7
+ [java.util.zip ZipInputStream]
8
[java.io ByteArrayInputStream]
9
[java.io ByteArrayOutputStream]))
10
@@ -31,7 +32,7 @@
31
32
(.toByteArray baos))))
33
34
(defn unzip-pkzip [buffer]
- (let [bais (ByteArrayInputStream. buffer)
35
+ (let [bais (ZipInputStream. (ByteArrayInputStream. buffer))
36
baos (ByteArrayOutputStream.)]
37
(org.apache.commons.io.IOUtils/copy bais baos)
38
(.toByteArray baos)))
0 commit comments