typo in node beginner's guide (s/data/req) #20

jplehmann opened this Issue Mar 3, 2013 · 0 comments


None yet

1 participant


In first example under EventEmitters:

var data = '';
  .on('data', function(chunk) {
    data += chunk;
  .on('end', function() {
    console.log('POST data: %s', data);

Shouldn't that first line be a declaration of 'req' not 'data'?

thanks for the helpful docs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment