{"action":"created","comment":{"url":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/comments/24954227","id":24954227,"diff_hunk":"@@ -34,10 +36,10 @@ def start_server():\n         raise\n \n \n-def response_ok(uri):\n+def response_ok(uri, body_and_type):\n     okay_response = \"HTTP/1.1 200 OK\\r\\n\"\n-    headers = \"Content-Type: text/plain\\r\\n\"\n-    body = \"you requested: {}\".format(uri)\n+    headers = \"Content-Type: {}\\r\\n\".format(body_and_type[1])\n+    body = \"{}\".format(body_and_type[0])\n     return \"{}{}{}\\r\\n\".format(okay_response, headers, body)","path":"echo_server.py","position":18,"original_position":18,"commit_id":"5a33c3fe347a2d0ee2f607ba6cdb448dfced70ec","original_commit_id":"5a33c3fe347a2d0ee2f607ba6cdb448dfced70ec","user":{"login":"cewing","id":417109,"avatar_url":"https://avatars.githubusercontent.com/u/417109?v=3","gravatar_id":"","url":"https://api.github.com/users/cewing","html_url":"https://github.com/cewing","followers_url":"https://api.github.com/users/cewing/followers","following_url":"https://api.github.com/users/cewing/following{/other_user}","gists_url":"https://api.github.com/users/cewing/gists{/gist_id}","starred_url":"https://api.github.com/users/cewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewing/subscriptions","organizations_url":"https://api.github.com/users/cewing/orgs","repos_url":"https://api.github.com/users/cewing/repos","events_url":"https://api.github.com/users/cewing/events{/privacy}","received_events_url":"https://api.github.com/users/cewing/received_events","type":"User","site_admin":false},"body":"Why are you still passing in the URI?  You don't use it anywhere.  ","created_at":"2015-02-19T00:03:56Z","updated_at":"2015-02-19T00:03:56Z","html_url":"https://github.com/robertwhaskell/network_tools/pull/4#discussion_r24954227","pull_request_url":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/comments/24954227"},"html":{"href":"https://github.com/robertwhaskell/network_tools/pull/4#discussion_r24954227"},"pull_request":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/4","id":29245310,"html_url":"https://github.com/robertwhaskell/network_tools/pull/4","diff_url":"https://github.com/robertwhaskell/network_tools/pull/4.diff","patch_url":"https://github.com/robertwhaskell/network_tools/pull/4.patch","issue_url":"https://api.github.com/repos/robertwhaskell/network_tools/issues/4","number":4,"state":"closed","locked":false,"title":"Http2","user":{"login":"robertwhaskell","id":8595188,"avatar_url":"https://avatars.githubusercontent.com/u/8595188?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwhaskell","html_url":"https://github.com/robertwhaskell","followers_url":"https://api.github.com/users/robertwhaskell/followers","following_url":"https://api.github.com/users/robertwhaskell/following{/other_user}","gists_url":"https://api.github.com/users/robertwhaskell/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwhaskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwhaskell/subscriptions","organizations_url":"https://api.github.com/users/robertwhaskell/orgs","repos_url":"https://api.github.com/users/robertwhaskell/repos","events_url":"https://api.github.com/users/robertwhaskell/events{/privacy}","received_events_url":"https://api.github.com/users/robertwhaskell/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-13T07:32:53Z","updated_at":"2015-02-19T00:03:56Z","closed_at":"2015-02-13T08:53:26Z","merged_at":"2015-02-13T08:53:26Z","merge_commit_sha":"549dc0157bc1d2201c9f2a0c41e6534c9b2cef29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/4/commits","review_comments_url":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/4/comments","review_comment_url":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/comments/{number}","comments_url":"https://api.github.com/repos/robertwhaskell/network_tools/issues/4/comments","statuses_url":"https://api.github.com/repos/robertwhaskell/network_tools/statuses/5a33c3fe347a2d0ee2f607ba6cdb448dfced70ec","head":{"label":"robertwhaskell:http2","ref":"http2","sha":"5a33c3fe347a2d0ee2f607ba6cdb448dfced70ec","user":{"login":"robertwhaskell","id":8595188,"avatar_url":"https://avatars.githubusercontent.com/u/8595188?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwhaskell","html_url":"https://github.com/robertwhaskell","followers_url":"https://api.github.com/users/robertwhaskell/followers","following_url":"https://api.github.com/users/robertwhaskell/following{/other_user}","gists_url":"https://api.github.com/users/robertwhaskell/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwhaskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwhaskell/subscriptions","organizations_url":"https://api.github.com/users/robertwhaskell/orgs","repos_url":"https://api.github.com/users/robertwhaskell/repos","events_url":"https://api.github.com/users/robertwhaskell/events{/privacy}","received_events_url":"https://api.github.com/users/robertwhaskell/received_events","type":"User","site_admin":false},"repo":{"id":30573581,"name":"network_tools","full_name":"robertwhaskell/network_tools","owner":{"login":"robertwhaskell","id":8595188,"avatar_url":"https://avatars.githubusercontent.com/u/8595188?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwhaskell","html_url":"https://github.com/robertwhaskell","followers_url":"https://api.github.com/users/robertwhaskell/followers","following_url":"https://api.github.com/users/robertwhaskell/following{/other_user}","gists_url":"https://api.github.com/users/robertwhaskell/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwhaskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwhaskell/subscriptions","organizations_url":"https://api.github.com/users/robertwhaskell/orgs","repos_url":"https://api.github.com/users/robertwhaskell/repos","events_url":"https://api.github.com/users/robertwhaskell/events{/privacy}","received_events_url":"https://api.github.com/users/robertwhaskell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robertwhaskell/network_tools","description":"A simple echo server and client","fork":false,"url":"https://api.github.com/repos/robertwhaskell/network_tools","forks_url":"https://api.github.com/repos/robertwhaskell/network_tools/forks","keys_url":"https://api.github.com/repos/robertwhaskell/network_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robertwhaskell/network_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robertwhaskell/network_tools/teams","hooks_url":"https://api.github.com/repos/robertwhaskell/network_tools/hooks","issue_events_url":"https://api.github.com/repos/robertwhaskell/network_tools/issues/events{/number}","events_url":"https://api.github.com/repos/robertwhaskell/network_tools/events","assignees_url":"https://api.github.com/repos/robertwhaskell/network_tools/assignees{/user}","branches_url":"https://api.github.com/repos/robertwhaskell/network_tools/branches{/branch}","tags_url":"https://api.github.com/repos/robertwhaskell/network_tools/tags","blobs_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robertwhaskell/network_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/robertwhaskell/network_tools/languages","stargazers_url":"https://api.github.com/repos/robertwhaskell/network_tools/stargazers","contributors_url":"https://api.github.com/repos/robertwhaskell/network_tools/contributors","subscribers_url":"https://api.github.com/repos/robertwhaskell/network_tools/subscribers","subscription_url":"https://api.github.com/repos/robertwhaskell/network_tools/subscription","commits_url":"https://api.github.com/repos/robertwhaskell/network_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/robertwhaskell/network_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/robertwhaskell/network_tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/robertwhaskell/network_tools/contents/{+path}","compare_url":"https://api.github.com/repos/robertwhaskell/network_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robertwhaskell/network_tools/merges","archive_url":"https://api.github.com/repos/robertwhaskell/network_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robertwhaskell/network_tools/downloads","issues_url":"https://api.github.com/repos/robertwhaskell/network_tools/issues{/number}","pulls_url":"https://api.github.com/repos/robertwhaskell/network_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/robertwhaskell/network_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/robertwhaskell/network_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robertwhaskell/network_tools/labels{/name}","releases_url":"https://api.github.com/repos/robertwhaskell/network_tools/releases{/id}","created_at":"2015-02-10T03:46:27Z","updated_at":"2015-02-14T04:42:25Z","pushed_at":"2015-02-14T04:42:25Z","git_url":"git://github.com/robertwhaskell/network_tools.git","ssh_url":"git@github.com:robertwhaskell/network_tools.git","clone_url":"https://github.com/robertwhaskell/network_tools.git","svn_url":"https://github.com/robertwhaskell/network_tools","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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":"robertwhaskell:master","ref":"master","sha":"97e31562b0795406d35925ec4897a8f6b6f78935","user":{"login":"robertwhaskell","id":8595188,"avatar_url":"https://avatars.githubusercontent.com/u/8595188?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwhaskell","html_url":"https://github.com/robertwhaskell","followers_url":"https://api.github.com/users/robertwhaskell/followers","following_url":"https://api.github.com/users/robertwhaskell/following{/other_user}","gists_url":"https://api.github.com/users/robertwhaskell/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwhaskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwhaskell/subscriptions","organizations_url":"https://api.github.com/users/robertwhaskell/orgs","repos_url":"https://api.github.com/users/robertwhaskell/repos","events_url":"https://api.github.com/users/robertwhaskell/events{/privacy}","received_events_url":"https://api.github.com/users/robertwhaskell/received_events","type":"User","site_admin":false},"repo":{"id":30573581,"name":"network_tools","full_name":"robertwhaskell/network_tools","owner":{"login":"robertwhaskell","id":8595188,"avatar_url":"https://avatars.githubusercontent.com/u/8595188?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwhaskell","html_url":"https://github.com/robertwhaskell","followers_url":"https://api.github.com/users/robertwhaskell/followers","following_url":"https://api.github.com/users/robertwhaskell/following{/other_user}","gists_url":"https://api.github.com/users/robertwhaskell/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwhaskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwhaskell/subscriptions","organizations_url":"https://api.github.com/users/robertwhaskell/orgs","repos_url":"https://api.github.com/users/robertwhaskell/repos","events_url":"https://api.github.com/users/robertwhaskell/events{/privacy}","received_events_url":"https://api.github.com/users/robertwhaskell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robertwhaskell/network_tools","description":"A simple echo server and client","fork":false,"url":"https://api.github.com/repos/robertwhaskell/network_tools","forks_url":"https://api.github.com/repos/robertwhaskell/network_tools/forks","keys_url":"https://api.github.com/repos/robertwhaskell/network_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robertwhaskell/network_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robertwhaskell/network_tools/teams","hooks_url":"https://api.github.com/repos/robertwhaskell/network_tools/hooks","issue_events_url":"https://api.github.com/repos/robertwhaskell/network_tools/issues/events{/number}","events_url":"https://api.github.com/repos/robertwhaskell/network_tools/events","assignees_url":"https://api.github.com/repos/robertwhaskell/network_tools/assignees{/user}","branches_url":"https://api.github.com/repos/robertwhaskell/network_tools/branches{/branch}","tags_url":"https://api.github.com/repos/robertwhaskell/network_tools/tags","blobs_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robertwhaskell/network_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/robertwhaskell/network_tools/languages","stargazers_url":"https://api.github.com/repos/robertwhaskell/network_tools/stargazers","contributors_url":"https://api.github.com/repos/robertwhaskell/network_tools/contributors","subscribers_url":"https://api.github.com/repos/robertwhaskell/network_tools/subscribers","subscription_url":"https://api.github.com/repos/robertwhaskell/network_tools/subscription","commits_url":"https://api.github.com/repos/robertwhaskell/network_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/robertwhaskell/network_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/robertwhaskell/network_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/robertwhaskell/network_tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/robertwhaskell/network_tools/contents/{+path}","compare_url":"https://api.github.com/repos/robertwhaskell/network_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robertwhaskell/network_tools/merges","archive_url":"https://api.github.com/repos/robertwhaskell/network_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robertwhaskell/network_tools/downloads","issues_url":"https://api.github.com/repos/robertwhaskell/network_tools/issues{/number}","pulls_url":"https://api.github.com/repos/robertwhaskell/network_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/robertwhaskell/network_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/robertwhaskell/network_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robertwhaskell/network_tools/labels{/name}","releases_url":"https://api.github.com/repos/robertwhaskell/network_tools/releases{/id}","created_at":"2015-02-10T03:46:27Z","updated_at":"2015-02-14T04:42:25Z","pushed_at":"2015-02-14T04:42:25Z","git_url":"git://github.com/robertwhaskell/network_tools.git","ssh_url":"git@github.com:robertwhaskell/network_tools.git","clone_url":"https://github.com/robertwhaskell/network_tools.git","svn_url":"https://github.com/robertwhaskell/network_tools","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/4"},"html":{"href":"https://github.com/robertwhaskell/network_tools/pull/4"},"issue":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/issues/4"},"comments":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/robertwhaskell/network_tools/statuses/5a33c3fe347a2d0ee2f607ba6cdb448dfced70ec"}}}}