mirror of
https://github.com/bitinflow/server.git
synced 2026-11-01 13:19:08 +00:00
skip favicon for non proxy routes
This commit is contained in:
1 parent
682e58c68e
commit
90cd0ed18c
1 file changed
+6
@@ -110,6 +110,12 @@ server.on('connection', function(socket) {
|
||||
if (!match) {
|
||||
// normal processing if not proxy
|
||||
var res = new ServerResponse(req);
|
||||
|
||||
// TODO(shtylman) skip favicon for now, it caused problems
|
||||
if (req.url === '/favicon.ico') {
|
||||
return;
|
||||
}
|
||||
|
||||
res.assignSocket(parser.socket);
|
||||
self.emit('request', req, res);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user