title: res.send not working for object?
body: <p>Here's the code, htis is node.js using the express framework:</p>
  
  <hr>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  
  /* GET home page. */
  router.get('/', function(req, res, next) {
    res.render('index', { title: 'Expressxx' });
  });
  
  router.post('/', function(req, res, next) {
  
    var body = '';
  
    req.on('data', function(chunk) {
       body += chunk;
       });
  
    req.on('end', function() {
       console.log(body);
       });
  
    /* res.send('Got the Post'); */
  
    res.set('Content-Type', 'text/plain');
    res.send('this is the body' + body);
    res.end();
  
  });
  
  module.exports = router;
  </code></pre>
  
  <hr>
  
  <p>When i do the console.log(body); i see the expected data, but in the client all i see is 'this is the body'. Seems the res.send is not able to read the body obj?</p>
  
  <p>Thanks....</p>