Skip to content

Instantly share code, notes, and snippets.

@bhelx
Created September 24, 2012 22:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bhelx/3778965 to your computer and use it in GitHub Desktop.
body dump middleware
app.all('*', function (req, res, next) {
req.setEncoding('utf-8');
req.on('data', function (data) {
console.log(data);
});
// next();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment