{"action":"created","issue":{"url":"https://api.github.com/repos/rvagg/learnyounode/issues/246","labels_url":"https://api.github.com/repos/rvagg/learnyounode/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/rvagg/learnyounode/issues/246/comments","events_url":"https://api.github.com/repos/rvagg/learnyounode/issues/246/events","html_url":"https://github.com/rvagg/learnyounode/issues/246","id":58985316,"number":246,"title":"LearnYouNode Exercises 12 -- no content in response object","user":{"login":"TheMaverickProgrammer","id":91709,"avatar_url":"https://avatars.githubusercontent.com/u/91709?v=3","gravatar_id":"","url":"https://api.github.com/users/TheMaverickProgrammer","html_url":"https://github.com/TheMaverickProgrammer","followers_url":"https://api.github.com/users/TheMaverickProgrammer/followers","following_url":"https://api.github.com/users/TheMaverickProgrammer/following{/other_user}","gists_url":"https://api.github.com/users/TheMaverickProgrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/TheMaverickProgrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheMaverickProgrammer/subscriptions","organizations_url":"https://api.github.com/users/TheMaverickProgrammer/orgs","repos_url":"https://api.github.com/users/TheMaverickProgrammer/repos","events_url":"https://api.github.com/users/TheMaverickProgrammer/events{/privacy}","received_events_url":"https://api.github.com/users/TheMaverickProgrammer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T23:05:52Z","updated_at":"2015-02-26T05:26:32Z","closed_at":"2015-02-25T23:17:27Z","body":"I'm trying to avoid using the chunk-mapper module so I can play with nodejs as close as possible. \r\n\r\n```javascript\r\n// Start program12 process\r\n\r\n// Get the http module for Node\r\nvar http = require('http')\r\n\r\n// Get the stream module for Node\r\nvar stream = require('stream')\r\n\r\nhttp.createServer(function(req, res) {\r\n   if(req[\"method\"] != \"POST\")\r\n      return res.end(\"Server responds to POST requests only.\");\r\n\r\n   // 'OK' HTTP code\r\n   res.writeHead(200, {'content-type': 'text/plain'})\r\n\r\n   res.on('data', function(data){\r\n      data.toString().toUpperCase();\r\n   });\r\n\r\n   req.pipe(res);\r\n   res.end();\r\n}).listen(process.argv[2]);\r\n```\r\n\r\nWith my understanding, when the request stream pipes into the response stream, it should trigger the data event and the result will have response object with uppercase words. As of right now, nothing is displaying."},"comment":{"url":"https://api.github.com/repos/rvagg/learnyounode/issues/comments/76124539","html_url":"https://github.com/rvagg/learnyounode/issues/246#issuecomment-76124539","issue_url":"https://api.github.com/repos/rvagg/learnyounode/issues/246","id":76124539,"user":{"login":"TheMaverickProgrammer","id":91709,"avatar_url":"https://avatars.githubusercontent.com/u/91709?v=3","gravatar_id":"","url":"https://api.github.com/users/TheMaverickProgrammer","html_url":"https://github.com/TheMaverickProgrammer","followers_url":"https://api.github.com/users/TheMaverickProgrammer/followers","following_url":"https://api.github.com/users/TheMaverickProgrammer/following{/other_user}","gists_url":"https://api.github.com/users/TheMaverickProgrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/TheMaverickProgrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheMaverickProgrammer/subscriptions","organizations_url":"https://api.github.com/users/TheMaverickProgrammer/orgs","repos_url":"https://api.github.com/users/TheMaverickProgrammer/repos","events_url":"https://api.github.com/users/TheMaverickProgrammer/events{/privacy}","received_events_url":"https://api.github.com/users/TheMaverickProgrammer/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T05:26:32Z","updated_at":"2015-02-26T05:26:32Z","body":"@ralphtheninja  That worked like a charm. Thanks for the snippet! It really sheds some light on how the components work together."}}