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

Open
jplehmann opened this Issue Mar 3, 2013 · 0 comments

Projects

None yet

1 participant

@jplehmann

In first example under EventEmitters:

var data = '';
req
  .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