mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-08 03:00:20 -04:00
index: fix send implementation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user