{"action":"created","comment":{"url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/comments/85478570","pull_request_review_id":6192840,"id":85478570,"diff_hunk":"@@ -1,27 +1,40 @@\n const http = require('http');\n const fs = require('fs');\n+const parseUrl = require('url').parse;\n+const qs = require('querystring');\n \n const server = http.createServer((req, res) => {\n-  res.statusCode = 200;\n+  let method = req.method;\n+  let reqPath = parseUrl(req.url);\n+  let queryStr = reqPath.query;\n+  let query = qs.parse(queryStr);\n+\n   if (req.url === '/') {\n+    res.writeHead(200, {\n+      'Content-Type': 'text/html'\n+    });\n     fs.readFile('index.html', 'utf8', (err, data) => {\n       if (err) {\n         res.statusCode = 500;\n         res.end('READ FAILURE');\n       } else {\n         res.write(data);\n+        console.log(res.text);\n         res.end();\n       }\n     });\n+  } else if (method === 'POST' && reqPath.pathname === '/bacon') {","path":"http.js","position":27,"original_position":27,"commit_id":"5ff0c001f06aab6306aee93a2f271f226b21f19f","original_commit_id":"5ff0c001f06aab6306aee93a2f271f226b21f19f","user":{"login":"aaronbini","id":10383406,"avatar_url":"https://avatars.githubusercontent.com/u/10383406?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronbini","html_url":"https://github.com/aaronbini","followers_url":"https://api.github.com/users/aaronbini/followers","following_url":"https://api.github.com/users/aaronbini/following{/other_user}","gists_url":"https://api.github.com/users/aaronbini/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronbini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronbini/subscriptions","organizations_url":"https://api.github.com/users/aaronbini/orgs","repos_url":"https://api.github.com/users/aaronbini/repos","events_url":"https://api.github.com/users/aaronbini/events{/privacy}","received_events_url":"https://api.github.com/users/aaronbini/received_events","type":"User","site_admin":false},"body":"always good to have a bacon route in your API.","created_at":"2016-10-28T06:34:31Z","updated_at":"2016-10-28T06:38:32Z","html_url":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pull/27#discussion_r85478570","pull_request_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/comments/85478570"},"html":{"href":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pull/27#discussion_r85478570"},"pull_request":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/27","id":91107126,"html_url":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pull/27","diff_url":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pull/27.diff","patch_url":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pull/27.patch","issue_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/issues/27","number":27,"state":"open","locked":false,"title":"Andy-david","user":{"login":"andybeers","id":18360134,"avatar_url":"https://avatars.githubusercontent.com/u/18360134?v=3","gravatar_id":"","url":"https://api.github.com/users/andybeers","html_url":"https://github.com/andybeers","followers_url":"https://api.github.com/users/andybeers/followers","following_url":"https://api.github.com/users/andybeers/following{/other_user}","gists_url":"https://api.github.com/users/andybeers/gists{/gist_id}","starred_url":"https://api.github.com/users/andybeers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andybeers/subscriptions","organizations_url":"https://api.github.com/users/andybeers/orgs","repos_url":"https://api.github.com/users/andybeers/repos","events_url":"https://api.github.com/users/andybeers/events{/privacy}","received_events_url":"https://api.github.com/users/andybeers/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-26T23:18:46Z","updated_at":"2016-10-28T06:38:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e3014887cff2cd1a158b41f691d062d6bbada3c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/27/commits","review_comments_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/27/comments","review_comment_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/issues/27/comments","statuses_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/statuses/5ff0c001f06aab6306aee93a2f271f226b21f19f","head":{"label":"andybeers:andy-david","ref":"andy-david","sha":"5ff0c001f06aab6306aee93a2f271f226b21f19f","user":{"login":"andybeers","id":18360134,"avatar_url":"https://avatars.githubusercontent.com/u/18360134?v=3","gravatar_id":"","url":"https://api.github.com/users/andybeers","html_url":"https://github.com/andybeers","followers_url":"https://api.github.com/users/andybeers/followers","following_url":"https://api.github.com/users/andybeers/following{/other_user}","gists_url":"https://api.github.com/users/andybeers/gists{/gist_id}","starred_url":"https://api.github.com/users/andybeers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andybeers/subscriptions","organizations_url":"https://api.github.com/users/andybeers/orgs","repos_url":"https://api.github.com/users/andybeers/repos","events_url":"https://api.github.com/users/andybeers/events{/privacy}","received_events_url":"https://api.github.com/users/andybeers/received_events","type":"User","site_admin":false},"repo":{"id":71842456,"name":"http-hello-goodbye-world","full_name":"andybeers/http-hello-goodbye-world","owner":{"login":"andybeers","id":18360134,"avatar_url":"https://avatars.githubusercontent.com/u/18360134?v=3","gravatar_id":"","url":"https://api.github.com/users/andybeers","html_url":"https://github.com/andybeers","followers_url":"https://api.github.com/users/andybeers/followers","following_url":"https://api.github.com/users/andybeers/following{/other_user}","gists_url":"https://api.github.com/users/andybeers/gists{/gist_id}","starred_url":"https://api.github.com/users/andybeers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andybeers/subscriptions","organizations_url":"https://api.github.com/users/andybeers/orgs","repos_url":"https://api.github.com/users/andybeers/repos","events_url":"https://api.github.com/users/andybeers/events{/privacy}","received_events_url":"https://api.github.com/users/andybeers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andybeers/http-hello-goodbye-world","description":null,"fork":true,"url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world","forks_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/forks","keys_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/teams","hooks_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/hooks","issue_events_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/issues/events{/number}","events_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/events","assignees_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/assignees{/user}","branches_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/branches{/branch}","tags_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/tags","blobs_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/git/refs{/sha}","trees_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/statuses/{sha}","languages_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/languages","stargazers_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/stargazers","contributors_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/contributors","subscribers_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/subscribers","subscription_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/subscription","commits_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/commits{/sha}","git_commits_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/git/commits{/sha}","comments_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/comments{/number}","issue_comment_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/issues/comments{/number}","contents_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/contents/{+path}","compare_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/merges","archive_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/downloads","issues_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/issues{/number}","pulls_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/pulls{/number}","milestones_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/milestones{/number}","notifications_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/labels{/name}","releases_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/releases{/id}","deployments_url":"https://api.github.com/repos/andybeers/http-hello-goodbye-world/deployments","created_at":"2016-10-25T00:00:30Z","updated_at":"2016-10-24T14:39:24Z","pushed_at":"2016-10-26T23:17:25Z","git_url":"git://github.com/andybeers/http-hello-goodbye-world.git","ssh_url":"git@github.com:andybeers/http-hello-goodbye-world.git","clone_url":"https://github.com/andybeers/http-hello-goodbye-world.git","svn_url":"https://github.com/andybeers/http-hello-goodbye-world","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codefellows-portland-javascript-401d4:andy-david","ref":"andy-david","sha":"3350bde699118b2d2346aaae27494475e075c30a","user":{"login":"codefellows-portland-javascript-401d4","id":22821676,"avatar_url":"https://avatars.githubusercontent.com/u/22821676?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-portland-javascript-401d4","html_url":"https://github.com/codefellows-portland-javascript-401d4","followers_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/followers","following_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/subscriptions","organizations_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/orgs","repos_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/repos","events_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/received_events","type":"Organization","site_admin":false},"repo":{"id":71798471,"name":"http-hello-goodbye-world","full_name":"codefellows-portland-javascript-401d4/http-hello-goodbye-world","owner":{"login":"codefellows-portland-javascript-401d4","id":22821676,"avatar_url":"https://avatars.githubusercontent.com/u/22821676?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-portland-javascript-401d4","html_url":"https://github.com/codefellows-portland-javascript-401d4","followers_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/followers","following_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/subscriptions","organizations_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/orgs","repos_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/repos","events_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-portland-javascript-401d4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world","description":null,"fork":false,"url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world","forks_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/forks","keys_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/teams","hooks_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/hooks","issue_events_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/issues/events{/number}","events_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/events","assignees_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/assignees{/user}","branches_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/branches{/branch}","tags_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/tags","blobs_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/statuses/{sha}","languages_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/languages","stargazers_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/stargazers","contributors_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/contributors","subscribers_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/subscribers","subscription_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/subscription","commits_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/issues/comments{/number}","contents_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/contents/{+path}","compare_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/merges","archive_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/downloads","issues_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/issues{/number}","pulls_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls{/number}","milestones_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/milestones{/number}","notifications_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/labels{/name}","releases_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/releases{/id}","deployments_url":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/deployments","created_at":"2016-10-24T14:39:24Z","updated_at":"2016-10-27T21:13:33Z","pushed_at":"2016-10-28T04:48:28Z","git_url":"git://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world.git","ssh_url":"git@github.com:codefellows-portland-javascript-401d4/http-hello-goodbye-world.git","clone_url":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world.git","svn_url":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world","homepage":null,"size":3756,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":32,"forks":24,"open_issues":32,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/27"},"html":{"href":"https://github.com/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pull/27"},"issue":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/issues/27"},"comments":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d4/http-hello-goodbye-world/statuses/5ff0c001f06aab6306aee93a2f271f226b21f19f"}}}}
{"actor":{"display_login":"aaronbini"}}