espadrine/ScoutCamp — Issue #15: camp.handle problem when path[0] is not defined
Author: jankeromnes
Created: 2012-02-27 22:29:01+00:00
State: open

Works:

camp.handle('/types.html', function (query, path) {
path[0] = '/types.html';
camp.server.emit('gottypes', data);
}, function gottypes (data) {
return data;
});

Doesn't work (the page is never delivered):

camp.handle('/types.html', function (query, path) {

camp.server.emit('gottypes', data);
}, function gottypes (data) {
return data;
});

I think this is a problem.