Commit 26921e0c2d2c08951140e389d305f3f7babe347e
1 parent
5a00ec06f9
Exists in
master
404 on favicon request
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
lib/http-command-server/index.js
... | ... | @@ -11,6 +11,11 @@ const routerSMS = require('./router-sms'); |
11 | 11 | const app = express(); |
12 | 12 | |
13 | 13 | function middlewareCustomLog(req, res, next) { |
14 | + if (req.url.indexOf('/favicon.ico') === 0) { | |
15 | + res.sendStatus(404); | |
16 | + return; | |
17 | + } | |
18 | + | |
14 | 19 | logger.info('Incoming request on HTTP command server', { ip: req.ip, url: req.url }); |
15 | 20 | next(); |
16 | 21 | } |