Skip to content

Commit

Permalink
Merge pull request #19 from kchung/ignore-favicon
Browse files Browse the repository at this point in the history
Ignore favicon
  • Loading branch information
calavera authored Apr 3, 2018
2 parents 63a7888 + 161ee99 commit 2c70670
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@ exports.listen = function(port) {
var dir = config.build.functions || config.build.Functions;
app.use(bodyParser.raw());
app.use(bodyParser.text({type: "*/*"}));
app.use(expressLogging(console));
app.use(expressLogging(console, {
blacklist: ['/favicon.ico'],
}));

app.get("/favicon.ico", function(req, res) {
res.status(204).end();
});
app.all("*", createHandler(dir));

app.listen(port, function(err) {
Expand Down

0 comments on commit 2c70670

Please sign in to comment.