{"action":"created","comment":{"url":"https://api.github.com/repos/everplans/fluxxed_up/pulls/comments/63281428","id":63281428,"diff_hunk":"@@ -18,10 +18,9 @@ var jsonStatham = {\n   setAdaptor(adaptor) { this.adaptor = adaptor },\n   getAdaptor() { return (this.adaptor ? this.adaptor : new defaultAdaptor()) },\n   buildRequest(path, method, data, withCredentials) {\n-    var headers = {} // TODO grab special header\n     var adaptor = this.getAdaptor()\n     var opts = {\n-      headers,\n+      headers: adaptor.headers(),","path":"src/lib/jsonStatham.js","position":8,"original_position":8,"commit_id":"6b4ca6155d579c45ab9188780c3c8be9de3c7c66","original_commit_id":"6b4ca6155d579c45ab9188780c3c8be9de3c7c66","user":{"login":"BJK","id":130032,"avatar_url":"https://avatars.githubusercontent.com/u/130032?v=3","gravatar_id":"","url":"https://api.github.com/users/BJK","html_url":"https://github.com/BJK","followers_url":"https://api.github.com/users/BJK/followers","following_url":"https://api.github.com/users/BJK/following{/other_user}","gists_url":"https://api.github.com/users/BJK/gists{/gist_id}","starred_url":"https://api.github.com/users/BJK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BJK/subscriptions","organizations_url":"https://api.github.com/users/BJK/orgs","repos_url":"https://api.github.com/users/BJK/repos","events_url":"https://api.github.com/users/BJK/events{/privacy}","received_events_url":"https://api.github.com/users/BJK/received_events","type":"User","site_admin":false},"body":"we should probably open this up to do an assign to some passed headers in the options. (but don't need that for this PR). ","created_at":"2016-05-14T20:16:30Z","updated_at":"2016-05-14T20:16:30Z","html_url":"https://github.com/everplans/fluxxed_up/pull/33#discussion_r63281428","pull_request_url":"https://api.github.com/repos/everplans/fluxxed_up/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/everplans/fluxxed_up/pulls/comments/63281428"},"html":{"href":"https://github.com/everplans/fluxxed_up/pull/33#discussion_r63281428"},"pull_request":{"href":"https://api.github.com/repos/everplans/fluxxed_up/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/everplans/fluxxed_up/pulls/33","id":70102210,"html_url":"https://github.com/everplans/fluxxed_up/pull/33","diff_url":"https://github.com/everplans/fluxxed_up/pull/33.diff","patch_url":"https://github.com/everplans/fluxxed_up/pull/33.patch","issue_url":"https://api.github.com/repos/everplans/fluxxed_up/issues/33","number":33,"state":"open","locked":false,"title":"Blr/statham/use adaptor headers","user":{"login":"bartriordan","id":2551980,"avatar_url":"https://avatars.githubusercontent.com/u/2551980?v=3","gravatar_id":"","url":"https://api.github.com/users/bartriordan","html_url":"https://github.com/bartriordan","followers_url":"https://api.github.com/users/bartriordan/followers","following_url":"https://api.github.com/users/bartriordan/following{/other_user}","gists_url":"https://api.github.com/users/bartriordan/gists{/gist_id}","starred_url":"https://api.github.com/users/bartriordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartriordan/subscriptions","organizations_url":"https://api.github.com/users/bartriordan/orgs","repos_url":"https://api.github.com/users/bartriordan/repos","events_url":"https://api.github.com/users/bartriordan/events{/privacy}","received_events_url":"https://api.github.com/users/bartriordan/received_events","type":"User","site_admin":false},"body":"@everplans/fluxxed_up Please review. This PR tells `jsonStatham` to use the `headers` method on the `adaptor` it is told to use to set all request headers. I included a test that the headers are being set as part of the request `opts`.","created_at":"2016-05-14T19:50:50Z","updated_at":"2016-05-14T20:16:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8fe4a1f3675f6e62fafa700c822dd243b29c1da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/everplans/fluxxed_up/pulls/33/commits","review_comments_url":"https://api.github.com/repos/everplans/fluxxed_up/pulls/33/comments","review_comment_url":"https://api.github.com/repos/everplans/fluxxed_up/pulls/comments{/number}","comments_url":"https://api.github.com/repos/everplans/fluxxed_up/issues/33/comments","statuses_url":"https://api.github.com/repos/everplans/fluxxed_up/statuses/6b4ca6155d579c45ab9188780c3c8be9de3c7c66","head":{"label":"everplans:blr/statham/useAdaptorHeaders","ref":"blr/statham/useAdaptorHeaders","sha":"6b4ca6155d579c45ab9188780c3c8be9de3c7c66","user":{"login":"everplans","id":3028302,"avatar_url":"https://avatars.githubusercontent.com/u/3028302?v=3","gravatar_id":"","url":"https://api.github.com/users/everplans","html_url":"https://github.com/everplans","followers_url":"https://api.github.com/users/everplans/followers","following_url":"https://api.github.com/users/everplans/following{/other_user}","gists_url":"https://api.github.com/users/everplans/gists{/gist_id}","starred_url":"https://api.github.com/users/everplans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everplans/subscriptions","organizations_url":"https://api.github.com/users/everplans/orgs","repos_url":"https://api.github.com/users/everplans/repos","events_url":"https://api.github.com/users/everplans/events{/privacy}","received_events_url":"https://api.github.com/users/everplans/received_events","type":"Organization","site_admin":false},"repo":{"id":27732371,"name":"fluxxed_up","full_name":"everplans/fluxxed_up","owner":{"login":"everplans","id":3028302,"avatar_url":"https://avatars.githubusercontent.com/u/3028302?v=3","gravatar_id":"","url":"https://api.github.com/users/everplans","html_url":"https://github.com/everplans","followers_url":"https://api.github.com/users/everplans/followers","following_url":"https://api.github.com/users/everplans/following{/other_user}","gists_url":"https://api.github.com/users/everplans/gists{/gist_id}","starred_url":"https://api.github.com/users/everplans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everplans/subscriptions","organizations_url":"https://api.github.com/users/everplans/orgs","repos_url":"https://api.github.com/users/everplans/repos","events_url":"https://api.github.com/users/everplans/events{/privacy}","received_events_url":"https://api.github.com/users/everplans/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everplans/fluxxed_up","description":"React.js & Flux utility belt. Handles simple patterns around the uni-directional dataflow; built to test. ","fork":false,"url":"https://api.github.com/repos/everplans/fluxxed_up","forks_url":"https://api.github.com/repos/everplans/fluxxed_up/forks","keys_url":"https://api.github.com/repos/everplans/fluxxed_up/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everplans/fluxxed_up/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everplans/fluxxed_up/teams","hooks_url":"https://api.github.com/repos/everplans/fluxxed_up/hooks","issue_events_url":"https://api.github.com/repos/everplans/fluxxed_up/issues/events{/number}","events_url":"https://api.github.com/repos/everplans/fluxxed_up/events","assignees_url":"https://api.github.com/repos/everplans/fluxxed_up/assignees{/user}","branches_url":"https://api.github.com/repos/everplans/fluxxed_up/branches{/branch}","tags_url":"https://api.github.com/repos/everplans/fluxxed_up/tags","blobs_url":"https://api.github.com/repos/everplans/fluxxed_up/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everplans/fluxxed_up/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everplans/fluxxed_up/git/refs{/sha}","trees_url":"https://api.github.com/repos/everplans/fluxxed_up/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everplans/fluxxed_up/statuses/{sha}","languages_url":"https://api.github.com/repos/everplans/fluxxed_up/languages","stargazers_url":"https://api.github.com/repos/everplans/fluxxed_up/stargazers","contributors_url":"https://api.github.com/repos/everplans/fluxxed_up/contributors","subscribers_url":"https://api.github.com/repos/everplans/fluxxed_up/subscribers","subscription_url":"https://api.github.com/repos/everplans/fluxxed_up/subscription","commits_url":"https://api.github.com/repos/everplans/fluxxed_up/commits{/sha}","git_commits_url":"https://api.github.com/repos/everplans/fluxxed_up/git/commits{/sha}","comments_url":"https://api.github.com/repos/everplans/fluxxed_up/comments{/number}","issue_comment_url":"https://api.github.com/repos/everplans/fluxxed_up/issues/comments{/number}","contents_url":"https://api.github.com/repos/everplans/fluxxed_up/contents/{+path}","compare_url":"https://api.github.com/repos/everplans/fluxxed_up/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everplans/fluxxed_up/merges","archive_url":"https://api.github.com/repos/everplans/fluxxed_up/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everplans/fluxxed_up/downloads","issues_url":"https://api.github.com/repos/everplans/fluxxed_up/issues{/number}","pulls_url":"https://api.github.com/repos/everplans/fluxxed_up/pulls{/number}","milestones_url":"https://api.github.com/repos/everplans/fluxxed_up/milestones{/number}","notifications_url":"https://api.github.com/repos/everplans/fluxxed_up/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everplans/fluxxed_up/labels{/name}","releases_url":"https://api.github.com/repos/everplans/fluxxed_up/releases{/id}","deployments_url":"https://api.github.com/repos/everplans/fluxxed_up/deployments","created_at":"2014-12-08T19:59:35Z","updated_at":"2016-05-13T15:53:29Z","pushed_at":"2016-05-14T19:56:19Z","git_url":"git://github.com/everplans/fluxxed_up.git","ssh_url":"git@github.com:everplans/fluxxed_up.git","clone_url":"https://github.com/everplans/fluxxed_up.git","svn_url":"https://github.com/everplans/fluxxed_up","homepage":"","size":339,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":7,"default_branch":"dev"}},"base":{"label":"everplans:dev","ref":"dev","sha":"0293bd968907ea1991021ea90c022126a85e2c6c","user":{"login":"everplans","id":3028302,"avatar_url":"https://avatars.githubusercontent.com/u/3028302?v=3","gravatar_id":"","url":"https://api.github.com/users/everplans","html_url":"https://github.com/everplans","followers_url":"https://api.github.com/users/everplans/followers","following_url":"https://api.github.com/users/everplans/following{/other_user}","gists_url":"https://api.github.com/users/everplans/gists{/gist_id}","starred_url":"https://api.github.com/users/everplans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everplans/subscriptions","organizations_url":"https://api.github.com/users/everplans/orgs","repos_url":"https://api.github.com/users/everplans/repos","events_url":"https://api.github.com/users/everplans/events{/privacy}","received_events_url":"https://api.github.com/users/everplans/received_events","type":"Organization","site_admin":false},"repo":{"id":27732371,"name":"fluxxed_up","full_name":"everplans/fluxxed_up","owner":{"login":"everplans","id":3028302,"avatar_url":"https://avatars.githubusercontent.com/u/3028302?v=3","gravatar_id":"","url":"https://api.github.com/users/everplans","html_url":"https://github.com/everplans","followers_url":"https://api.github.com/users/everplans/followers","following_url":"https://api.github.com/users/everplans/following{/other_user}","gists_url":"https://api.github.com/users/everplans/gists{/gist_id}","starred_url":"https://api.github.com/users/everplans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everplans/subscriptions","organizations_url":"https://api.github.com/users/everplans/orgs","repos_url":"https://api.github.com/users/everplans/repos","events_url":"https://api.github.com/users/everplans/events{/privacy}","received_events_url":"https://api.github.com/users/everplans/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everplans/fluxxed_up","description":"React.js & Flux utility belt. Handles simple patterns around the uni-directional dataflow; built to test. ","fork":false,"url":"https://api.github.com/repos/everplans/fluxxed_up","forks_url":"https://api.github.com/repos/everplans/fluxxed_up/forks","keys_url":"https://api.github.com/repos/everplans/fluxxed_up/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everplans/fluxxed_up/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everplans/fluxxed_up/teams","hooks_url":"https://api.github.com/repos/everplans/fluxxed_up/hooks","issue_events_url":"https://api.github.com/repos/everplans/fluxxed_up/issues/events{/number}","events_url":"https://api.github.com/repos/everplans/fluxxed_up/events","assignees_url":"https://api.github.com/repos/everplans/fluxxed_up/assignees{/user}","branches_url":"https://api.github.com/repos/everplans/fluxxed_up/branches{/branch}","tags_url":"https://api.github.com/repos/everplans/fluxxed_up/tags","blobs_url":"https://api.github.com/repos/everplans/fluxxed_up/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everplans/fluxxed_up/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everplans/fluxxed_up/git/refs{/sha}","trees_url":"https://api.github.com/repos/everplans/fluxxed_up/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everplans/fluxxed_up/statuses/{sha}","languages_url":"https://api.github.com/repos/everplans/fluxxed_up/languages","stargazers_url":"https://api.github.com/repos/everplans/fluxxed_up/stargazers","contributors_url":"https://api.github.com/repos/everplans/fluxxed_up/contributors","subscribers_url":"https://api.github.com/repos/everplans/fluxxed_up/subscribers","subscription_url":"https://api.github.com/repos/everplans/fluxxed_up/subscription","commits_url":"https://api.github.com/repos/everplans/fluxxed_up/commits{/sha}","git_commits_url":"https://api.github.com/repos/everplans/fluxxed_up/git/commits{/sha}","comments_url":"https://api.github.com/repos/everplans/fluxxed_up/comments{/number}","issue_comment_url":"https://api.github.com/repos/everplans/fluxxed_up/issues/comments{/number}","contents_url":"https://api.github.com/repos/everplans/fluxxed_up/contents/{+path}","compare_url":"https://api.github.com/repos/everplans/fluxxed_up/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everplans/fluxxed_up/merges","archive_url":"https://api.github.com/repos/everplans/fluxxed_up/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everplans/fluxxed_up/downloads","issues_url":"https://api.github.com/repos/everplans/fluxxed_up/issues{/number}","pulls_url":"https://api.github.com/repos/everplans/fluxxed_up/pulls{/number}","milestones_url":"https://api.github.com/repos/everplans/fluxxed_up/milestones{/number}","notifications_url":"https://api.github.com/repos/everplans/fluxxed_up/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everplans/fluxxed_up/labels{/name}","releases_url":"https://api.github.com/repos/everplans/fluxxed_up/releases{/id}","deployments_url":"https://api.github.com/repos/everplans/fluxxed_up/deployments","created_at":"2014-12-08T19:59:35Z","updated_at":"2016-05-13T15:53:29Z","pushed_at":"2016-05-14T19:56:19Z","git_url":"git://github.com/everplans/fluxxed_up.git","ssh_url":"git@github.com:everplans/fluxxed_up.git","clone_url":"https://github.com/everplans/fluxxed_up.git","svn_url":"https://github.com/everplans/fluxxed_up","homepage":"","size":339,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":7,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/everplans/fluxxed_up/pulls/33"},"html":{"href":"https://github.com/everplans/fluxxed_up/pull/33"},"issue":{"href":"https://api.github.com/repos/everplans/fluxxed_up/issues/33"},"comments":{"href":"https://api.github.com/repos/everplans/fluxxed_up/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/everplans/fluxxed_up/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/everplans/fluxxed_up/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/everplans/fluxxed_up/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/everplans/fluxxed_up/statuses/6b4ca6155d579c45ab9188780c3c8be9de3c7c66"}}}}