Skip to content

Commit

Permalink
index: fix send implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Dec 14, 2012
1 parent 4ea3348 commit 1e68a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1e68a83

Please sign in to comment.