aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 2fa6c6d..5ba0004 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -21,7 +21,6 @@ var htime = require('human-time')
var ph = require('pull-hyperscript')
var emojis = require('emoji-named-characters')
var jpeg = require('jpeg-autorotate')
-var unzip = require('unzip')
var Catch = require('pull-catch')
var Diff = require('diff')
var split = require('pull-split')
@@ -2550,6 +2549,7 @@ Serve.prototype.zip = function (url) {
if (/^invalid/.test(err.message)) return self.respond(400, err.message)
else return self.respond(500, err.message || err)
}
+ var unzip = require('unzip')
var parseUnzip = unzip.Parse()
var gotEntry = false
parseUnzip.on('entry', function (entry) {