skip favicon for non proxy routes

This commit is contained in:
Roman Shtylman
2012-06-18 13:52:00 -04:00
parent 682e58c68e
commit 90cd0ed18c

View File

@@ -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;