index: fix send implementation

This commit is contained in:
Guillermo Rauch
2012-12-14 09:18:34 -03:00
parent 4ea334899f
commit 1e68a83bd3

View File

@@ -106,8 +106,8 @@ Server.prototype.serve = function(srv){
var self = this;
function handle(req, res){
send(req, parse(req.url).pathname.substr(url.length))
.root(__dirname + '/client')
send(req, parse(req.url).pathname.substr(url.length - 1))
.root(__dirname + '/../client')
.index(false)
.pipe(res);
}