var http = require('http'),
	infoServ = http.createServer(),
	parseUrl = require('url').parse,
	io = require('socket.io').listen(infoServ, {'log': false}),

	// infoView 拓展方法
	util = require('../mod.js').util,
	_addListener = [];


infoServ.on('request', function(req, res){
	var uri = parseUrl(req.url, true),
		is404 = true;
	util.eachArr(_addListener, function(){
		if (this(req, res, uri) === false) {
			is404 = false;
			return false;
		}
	});

	if (is404 && !res.headersSent) {
		res.statusCode = 404;
		res.end();
	}
});



module.exports = {
	'io': io,
	'infoServ': infoServ,
	'onRequest': function(callback){
		_addListener.push(callback);
	}
};
@@ -306,24 +306,8 @@
 rue)
-,%0A%09%09is404 = true
 ;%0A%09u
@@ -346,20 +346,23 @@
 on()%7B%0A%09%09
-if (
+return 
 this(req
@@ -376,140 +376,14 @@
 uri)
- === false) %7B%0A%09%09%09is404 = false;%0A%09%09%09return false;%0A%09%09%7D%0A%09%7D);%0A%0A%09if (is404 && !res.headersSent) %7B%0A%09%09res.statusCode = 404;%0A%09%09res.end()
 ;%0A%09%7D
+);
 %0A%7D);

修正i2serv 404处理错误