Skip to content
Browse files

Adjusted for node.js API changes: req.setBodyEncoding in now req.setE…

…ncoding
  • Loading branch information...
1 parent 8f69ffa commit 98521297e978a535d389392a9c04ac6411ebbf96 @tifroz tifroz committed with jdub May 18, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/node-router.js
View
4 lib/node-router.js
@@ -227,7 +227,7 @@ exports.getServer = function getServer(logger) {
match.unshift(req);
if (route.format !== undefined) {
var body = "";
- req.setBodyEncoding('utf8');
+ req.setEncoding('utf8');
req.addListener('data', function (chunk) {
body += chunk;
});
@@ -291,7 +291,7 @@ exports.getServer = function getServer(logger) {
resource: resource,
resourceController: resourceController,
listen: listen,
- end: end,
+ end: end
};
}

0 comments on commit 9852129

Please sign in to comment.
Something went wrong with that request. Please try again.