diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 18:10:48 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 18:10:48 -0400 |
| commit | f7a6d15e313bf5502a885a6736c7f0de161a9520 (patch) | |
| tree | 7bc6b0a2aff8bc7301577e85dce8d5dc4802e679 /app/node_modules/okserver/index.js | |
| parent | 29b81b08d925596694ef5dc1b80a9fff6e4625f7 (diff) | |
Intercept and 404 favicon requests for now
Diffstat (limited to 'app/node_modules/okserver/index.js')
| -rw-r--r-- | app/node_modules/okserver/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/node_modules/okserver/index.js b/app/node_modules/okserver/index.js index 952602d..e6145ee 100644 --- a/app/node_modules/okserver/index.js +++ b/app/node_modules/okserver/index.js @@ -45,9 +45,14 @@ function OKServer(options) { * Order is important here! Requests go down the middleware * chain until they are handled with a response, which could * happen anywhere in the chain. Watch out for middleware shadowing - * ither middleware. + * other middleware. */ + // Intercept favicon requests and 404 for now + app.use('/favicon.ico', function(req, res) { + res.status(404) + return res.send(''); + }); // Serve user static files app.use(express.static(root)); // Serve admin interface static files |
