From 3fbee1e4502f377cce08d67b443aab5f950f2c8d Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 3 Apr 2019 17:23:22 -1000 Subject: Fix fallthrough --- lib/serve.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/serve.js') 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) -- cgit v1.2.3