fixed collection rename bug

This commit is contained in:
Ritchie Martori
2012-03-27 13:35:10 -07:00
parent 01a9944a46
commit f34923c1bc
4 changed files with 20 additions and 19 deletions

View File

@@ -35,7 +35,7 @@ var middleware = function (req, res, next) {
*/
middleware.listen = function (callback) {
var server = this.server = express.createServer(function (req, res, next) {
var server = this.server = express.createServer(function (req, res, next) {
// by default pause the request
req.pause();
@@ -136,7 +136,7 @@ middleware.listen = function (callback) {
res.statusCode = err.status || 400;
res.send({error: err});
} else {
next(err);
res.send(err);
}
});