{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/comments/29660696","id":29660696,"diff_hunk":"@@ -18,6 +18,7 @@ var Poller = function(config) {\n \tthis.options.headers = this.options.headers || {};\n \n \tif (!this.options.headers.Accept) {\n+\t\tthis.options.headers['Content-Type'] = 'application/json';","path":"src/poller.js","position":4,"original_position":4,"commit_id":"62a958c8e9083baca239074ab4bd0eff3e2bd317","original_commit_id":"62a958c8e9083baca239074ab4bd0eff3e2bd317","user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"body":"should this be in this `if`?","created_at":"2015-05-05T11:31:00Z","updated_at":"2015-05-05T11:31:00Z","html_url":"https://github.com/Financial-Times/ft-poller/pull/7#discussion_r29660696","pull_request_url":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/comments/29660696"},"html":{"href":"https://github.com/Financial-Times/ft-poller/pull/7#discussion_r29660696"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/7","id":34715172,"html_url":"https://github.com/Financial-Times/ft-poller/pull/7","diff_url":"https://github.com/Financial-Times/ft-poller/pull/7.diff","patch_url":"https://github.com/Financial-Times/ft-poller/pull/7.patch","issue_url":"https://api.github.com/repos/Financial-Times/ft-poller/issues/7","number":7,"state":"closed","locked":false,"title":"More explicit json headers","user":{"login":"wheresrhys","id":447559,"avatar_url":"https://avatars.githubusercontent.com/u/447559?v=3","gravatar_id":"","url":"https://api.github.com/users/wheresrhys","html_url":"https://github.com/wheresrhys","followers_url":"https://api.github.com/users/wheresrhys/followers","following_url":"https://api.github.com/users/wheresrhys/following{/other_user}","gists_url":"https://api.github.com/users/wheresrhys/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresrhys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresrhys/subscriptions","organizations_url":"https://api.github.com/users/wheresrhys/orgs","repos_url":"https://api.github.com/users/wheresrhys/repos","events_url":"https://api.github.com/users/wheresrhys/events{/privacy}","received_events_url":"https://api.github.com/users/wheresrhys/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-05T11:24:28Z","updated_at":"2015-05-05T11:31:00Z","closed_at":"2015-05-05T11:26:42Z","merged_at":"2015-05-05T11:26:42Z","merge_commit_sha":"bf8fd1a1c5f1ad9d3c7a62d7a52db27c5936e1f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/ft-poller/issues/7/comments","statuses_url":"https://api.github.com/repos/Financial-Times/ft-poller/statuses/62a958c8e9083baca239074ab4bd0eff3e2bd317","head":{"label":"Financial-Times:json-headers","ref":"json-headers","sha":"62a958c8e9083baca239074ab4bd0eff3e2bd317","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":22336832,"name":"ft-poller","full_name":"Financial-Times/ft-poller","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/ft-poller","description":"","fork":false,"url":"https://api.github.com/repos/Financial-Times/ft-poller","forks_url":"https://api.github.com/repos/Financial-Times/ft-poller/forks","keys_url":"https://api.github.com/repos/Financial-Times/ft-poller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/ft-poller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/ft-poller/teams","hooks_url":"https://api.github.com/repos/Financial-Times/ft-poller/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/ft-poller/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/ft-poller/events","assignees_url":"https://api.github.com/repos/Financial-Times/ft-poller/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/ft-poller/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/ft-poller/tags","blobs_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/ft-poller/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/ft-poller/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/ft-poller/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/ft-poller/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/ft-poller/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/ft-poller/subscription","commits_url":"https://api.github.com/repos/Financial-Times/ft-poller/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/ft-poller/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/ft-poller/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/ft-poller/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/ft-poller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/ft-poller/merges","archive_url":"https://api.github.com/repos/Financial-Times/ft-poller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/ft-poller/downloads","issues_url":"https://api.github.com/repos/Financial-Times/ft-poller/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/ft-poller/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/ft-poller/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/ft-poller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/ft-poller/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/ft-poller/releases{/id}","created_at":"2014-07-28T09:06:00Z","updated_at":"2015-05-05T11:26:43Z","pushed_at":"2015-05-05T11:27:03Z","git_url":"git://github.com/Financial-Times/ft-poller.git","ssh_url":"git@github.com:Financial-Times/ft-poller.git","clone_url":"https://github.com/Financial-Times/ft-poller.git","svn_url":"https://github.com/Financial-Times/ft-poller","homepage":null,"size":388,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"ad5d13404cbba43dbd22bff80c71fbbd1d75181f","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":22336832,"name":"ft-poller","full_name":"Financial-Times/ft-poller","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/ft-poller","description":"","fork":false,"url":"https://api.github.com/repos/Financial-Times/ft-poller","forks_url":"https://api.github.com/repos/Financial-Times/ft-poller/forks","keys_url":"https://api.github.com/repos/Financial-Times/ft-poller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/ft-poller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/ft-poller/teams","hooks_url":"https://api.github.com/repos/Financial-Times/ft-poller/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/ft-poller/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/ft-poller/events","assignees_url":"https://api.github.com/repos/Financial-Times/ft-poller/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/ft-poller/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/ft-poller/tags","blobs_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/ft-poller/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/ft-poller/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/ft-poller/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/ft-poller/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/ft-poller/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/ft-poller/subscription","commits_url":"https://api.github.com/repos/Financial-Times/ft-poller/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/ft-poller/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/ft-poller/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/ft-poller/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/ft-poller/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/ft-poller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/ft-poller/merges","archive_url":"https://api.github.com/repos/Financial-Times/ft-poller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/ft-poller/downloads","issues_url":"https://api.github.com/repos/Financial-Times/ft-poller/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/ft-poller/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/ft-poller/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/ft-poller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/ft-poller/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/ft-poller/releases{/id}","created_at":"2014-07-28T09:06:00Z","updated_at":"2015-05-05T11:26:43Z","pushed_at":"2015-05-05T11:27:03Z","git_url":"git://github.com/Financial-Times/ft-poller.git","ssh_url":"git@github.com:Financial-Times/ft-poller.git","clone_url":"https://github.com/Financial-Times/ft-poller.git","svn_url":"https://github.com/Financial-Times/ft-poller","homepage":null,"size":388,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/7"},"html":{"href":"https://github.com/Financial-Times/ft-poller/pull/7"},"issue":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/issues/7"},"comments":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/ft-poller/statuses/62a958c8e9083baca239074ab4bd0eff3e2bd317"}}}}