aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-04-03 17:23:22 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-04-03 17:23:22 -1000
commit3fbee1e4502f377cce08d67b443aab5f950f2c8d (patch)
treeebc16aa83f66407fd3ef121ae7d7eeb8e9e4ad46 /lib
parent3d49987a1e25cdaafa4b9b7ae583f519a1d2a935 (diff)
downloadpatchfoo-3fbee1e4502f377cce08d67b443aab5f950f2c8d.tar.gz
patchfoo-3fbee1e4502f377cce08d67b443aab5f950f2c8d.zip
Fix fallthrough
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 0410a92..353b60a 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1527,6 +1527,7 @@ Serve.prototype.image = function (path) {
if (err) {
console.trace(err)
self.respond(500, err.message || err)
+ return
}
type = type && mime.lookup(type)
if (type) self.res.setHeader('Content-Type', type)