mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 21:45:54 +00:00
skip favicon for non proxy routes
This commit is contained in:
@@ -110,6 +110,12 @@ server.on('connection', function(socket) {
|
|||||||
if (!match) {
|
if (!match) {
|
||||||
// normal processing if not proxy
|
// normal processing if not proxy
|
||||||
var res = new ServerResponse(req);
|
var res = new ServerResponse(req);
|
||||||
|
|
||||||
|
// TODO(shtylman) skip favicon for now, it caused problems
|
||||||
|
if (req.url === '/favicon.ico') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
res.assignSocket(parser.socket);
|
res.assignSocket(parser.socket);
|
||||||
self.emit('request', req, res);
|
self.emit('request', req, res);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user