aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-07 11:47:09 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-08 12:08:54 -0500
commit033d27ac3fe92dd16d9284aee9ad98f64e1c770b (patch)
tree6431a0abc6602bed1c2fcfe97bf7f7b6a0d3ec08
parentc3809754bf089b801ee3ffa3341beb51a8005ca6 (diff)
downloadpatchfoo-033d27ac3fe92dd16d9284aee9ad98f64e1c770b.tar.gz
patchfoo-033d27ac3fe92dd16d9284aee9ad98f64e1c770b.zip
Ignore empty uploads from w3m
-rw-r--r--lib/serve.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 88fe389..1f86188 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -75,6 +75,7 @@ Serve.prototype.go = function () {
)
done(function (err, size, id) {
if (err) return cb(err)
+ if (size === 0 && !filename) return cb()
data[fieldname] = {link: id, name: filename, type: mimetype, size: size}
cb()
})