aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-09 18:07:30 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-09 18:07:30 -1000
commit3995d586a0d20ef009f8a98587482c5f7f47ff58 (patch)
tree2972c0dbc13d2ab964c5e90e038655c63a35a392 /lib
parent240833027314bd38f229bf5f70a92963378c2117 (diff)
downloadpatchfoo-3995d586a0d20ef009f8a98587482c5f7f47ff58.tar.gz
patchfoo-3995d586a0d20ef009f8a98587482c5f7f47ff58.zip
Don't load unzip
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 7c42d0c..77cfdb4 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')
module.exports = Serve
@@ -2233,6 +2232,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) {