{"action":"created","comment":{"url":"https://api.github.com/repos/bloomberg/brisket/pulls/comments/31884353","id":31884353,"diff_hunk":"@@ -0,0 +1,23 @@\n+\"use strict\";\n+\n+function setClientHeader(method,model,options){\n+    options.headers = options.headers || {};\n+    options.headers['brisket-client'] = true;","path":"lib/client/setClientHeader.js","position":5,"original_position":5,"commit_id":"8bcc2a0b964824d6a3aaab1a374d718a64a89e60","original_commit_id":"cabe13741f4967cf0da64801bd4b834041d7ea58","user":{"login":"claquesous","id":2617521,"avatar_url":"https://avatars.githubusercontent.com/u/2617521?v=3","gravatar_id":"","url":"https://api.github.com/users/claquesous","html_url":"https://github.com/claquesous","followers_url":"https://api.github.com/users/claquesous/followers","following_url":"https://api.github.com/users/claquesous/following{/other_user}","gists_url":"https://api.github.com/users/claquesous/gists{/gist_id}","starred_url":"https://api.github.com/users/claquesous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claquesous/subscriptions","organizations_url":"https://api.github.com/users/claquesous/orgs","repos_url":"https://api.github.com/users/claquesous/repos","events_url":"https://api.github.com/users/claquesous/events{/privacy}","received_events_url":"https://api.github.com/users/claquesous/received_events","type":"User","site_admin":false},"body":"In my mind, I wanted to restrict it to sync requests like in lib/util/qualifyUrlWithHost.js. I'm not sure adding it to all ajax requests would be the most intuitive.","created_at":"2015-06-08T02:13:51Z","updated_at":"2015-06-08T02:13:51Z","html_url":"https://github.com/bloomberg/brisket/pull/140#discussion_r31884353","pull_request_url":"https://api.github.com/repos/bloomberg/brisket/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/bloomberg/brisket/pulls/comments/31884353"},"html":{"href":"https://github.com/bloomberg/brisket/pull/140#discussion_r31884353"},"pull_request":{"href":"https://api.github.com/repos/bloomberg/brisket/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/bloomberg/brisket/pulls/140","id":36097910,"html_url":"https://github.com/bloomberg/brisket/pull/140","diff_url":"https://github.com/bloomberg/brisket/pull/140.diff","patch_url":"https://github.com/bloomberg/brisket/pull/140.patch","issue_url":"https://api.github.com/repos/bloomberg/brisket/issues/140","number":140,"state":"open","locked":false,"title":"forward client requests to apiHost","user":{"login":"claquesous","id":2617521,"avatar_url":"https://avatars.githubusercontent.com/u/2617521?v=3","gravatar_id":"","url":"https://api.github.com/users/claquesous","html_url":"https://github.com/claquesous","followers_url":"https://api.github.com/users/claquesous/followers","following_url":"https://api.github.com/users/claquesous/following{/other_user}","gists_url":"https://api.github.com/users/claquesous/gists{/gist_id}","starred_url":"https://api.github.com/users/claquesous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claquesous/subscriptions","organizations_url":"https://api.github.com/users/claquesous/orgs","repos_url":"https://api.github.com/users/claquesous/repos","events_url":"https://api.github.com/users/claquesous/events{/privacy}","received_events_url":"https://api.github.com/users/claquesous/received_events","type":"User","site_admin":false},"body":"This needs a little more polish, but just putting it out there.","created_at":"2015-05-24T04:21:16Z","updated_at":"2015-06-08T02:13:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfac5bc3a19b68f816c03feeee216809542d5100","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bloomberg/brisket/pulls/140/commits","review_comments_url":"https://api.github.com/repos/bloomberg/brisket/pulls/140/comments","review_comment_url":"https://api.github.com/repos/bloomberg/brisket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bloomberg/brisket/issues/140/comments","statuses_url":"https://api.github.com/repos/bloomberg/brisket/statuses/8bcc2a0b964824d6a3aaab1a374d718a64a89e60","head":{"label":"claquesous:proxy_to_apihost","ref":"proxy_to_apihost","sha":"8bcc2a0b964824d6a3aaab1a374d718a64a89e60","user":{"login":"claquesous","id":2617521,"avatar_url":"https://avatars.githubusercontent.com/u/2617521?v=3","gravatar_id":"","url":"https://api.github.com/users/claquesous","html_url":"https://github.com/claquesous","followers_url":"https://api.github.com/users/claquesous/followers","following_url":"https://api.github.com/users/claquesous/following{/other_user}","gists_url":"https://api.github.com/users/claquesous/gists{/gist_id}","starred_url":"https://api.github.com/users/claquesous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claquesous/subscriptions","organizations_url":"https://api.github.com/users/claquesous/orgs","repos_url":"https://api.github.com/users/claquesous/repos","events_url":"https://api.github.com/users/claquesous/events{/privacy}","received_events_url":"https://api.github.com/users/claquesous/received_events","type":"User","site_admin":false},"repo":{"id":36042695,"name":"brisket","full_name":"claquesous/brisket","owner":{"login":"claquesous","id":2617521,"avatar_url":"https://avatars.githubusercontent.com/u/2617521?v=3","gravatar_id":"","url":"https://api.github.com/users/claquesous","html_url":"https://github.com/claquesous","followers_url":"https://api.github.com/users/claquesous/followers","following_url":"https://api.github.com/users/claquesous/following{/other_user}","gists_url":"https://api.github.com/users/claquesous/gists{/gist_id}","starred_url":"https://api.github.com/users/claquesous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claquesous/subscriptions","organizations_url":"https://api.github.com/users/claquesous/orgs","repos_url":"https://api.github.com/users/claquesous/repos","events_url":"https://api.github.com/users/claquesous/events{/privacy}","received_events_url":"https://api.github.com/users/claquesous/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/claquesous/brisket","description":"Bloomberg's Brisket JavaScript application framework","fork":true,"url":"https://api.github.com/repos/claquesous/brisket","forks_url":"https://api.github.com/repos/claquesous/brisket/forks","keys_url":"https://api.github.com/repos/claquesous/brisket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claquesous/brisket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claquesous/brisket/teams","hooks_url":"https://api.github.com/repos/claquesous/brisket/hooks","issue_events_url":"https://api.github.com/repos/claquesous/brisket/issues/events{/number}","events_url":"https://api.github.com/repos/claquesous/brisket/events","assignees_url":"https://api.github.com/repos/claquesous/brisket/assignees{/user}","branches_url":"https://api.github.com/repos/claquesous/brisket/branches{/branch}","tags_url":"https://api.github.com/repos/claquesous/brisket/tags","blobs_url":"https://api.github.com/repos/claquesous/brisket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claquesous/brisket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claquesous/brisket/git/refs{/sha}","trees_url":"https://api.github.com/repos/claquesous/brisket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claquesous/brisket/statuses/{sha}","languages_url":"https://api.github.com/repos/claquesous/brisket/languages","stargazers_url":"https://api.github.com/repos/claquesous/brisket/stargazers","contributors_url":"https://api.github.com/repos/claquesous/brisket/contributors","subscribers_url":"https://api.github.com/repos/claquesous/brisket/subscribers","subscription_url":"https://api.github.com/repos/claquesous/brisket/subscription","commits_url":"https://api.github.com/repos/claquesous/brisket/commits{/sha}","git_commits_url":"https://api.github.com/repos/claquesous/brisket/git/commits{/sha}","comments_url":"https://api.github.com/repos/claquesous/brisket/comments{/number}","issue_comment_url":"https://api.github.com/repos/claquesous/brisket/issues/comments{/number}","contents_url":"https://api.github.com/repos/claquesous/brisket/contents/{+path}","compare_url":"https://api.github.com/repos/claquesous/brisket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claquesous/brisket/merges","archive_url":"https://api.github.com/repos/claquesous/brisket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claquesous/brisket/downloads","issues_url":"https://api.github.com/repos/claquesous/brisket/issues{/number}","pulls_url":"https://api.github.com/repos/claquesous/brisket/pulls{/number}","milestones_url":"https://api.github.com/repos/claquesous/brisket/milestones{/number}","notifications_url":"https://api.github.com/repos/claquesous/brisket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claquesous/brisket/labels{/name}","releases_url":"https://api.github.com/repos/claquesous/brisket/releases{/id}","created_at":"2015-05-21T23:45:14Z","updated_at":"2015-05-21T23:45:15Z","pushed_at":"2015-06-08T01:05:19Z","git_url":"git://github.com/claquesous/brisket.git","ssh_url":"git@github.com:claquesous/brisket.git","clone_url":"https://github.com/claquesous/brisket.git","svn_url":"https://github.com/claquesous/brisket","homepage":"","size":583,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"bloomberg:master","ref":"master","sha":"8167ccc436e77c4e7ae0dc75df4e1324ac613a16","user":{"login":"bloomberg","id":1416818,"avatar_url":"https://avatars.githubusercontent.com/u/1416818?v=3","gravatar_id":"","url":"https://api.github.com/users/bloomberg","html_url":"https://github.com/bloomberg","followers_url":"https://api.github.com/users/bloomberg/followers","following_url":"https://api.github.com/users/bloomberg/following{/other_user}","gists_url":"https://api.github.com/users/bloomberg/gists{/gist_id}","starred_url":"https://api.github.com/users/bloomberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloomberg/subscriptions","organizations_url":"https://api.github.com/users/bloomberg/orgs","repos_url":"https://api.github.com/users/bloomberg/repos","events_url":"https://api.github.com/users/bloomberg/events{/privacy}","received_events_url":"https://api.github.com/users/bloomberg/received_events","type":"Organization","site_admin":false},"repo":{"id":24653948,"name":"brisket","full_name":"bloomberg/brisket","owner":{"login":"bloomberg","id":1416818,"avatar_url":"https://avatars.githubusercontent.com/u/1416818?v=3","gravatar_id":"","url":"https://api.github.com/users/bloomberg","html_url":"https://github.com/bloomberg","followers_url":"https://api.github.com/users/bloomberg/followers","following_url":"https://api.github.com/users/bloomberg/following{/other_user}","gists_url":"https://api.github.com/users/bloomberg/gists{/gist_id}","starred_url":"https://api.github.com/users/bloomberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloomberg/subscriptions","organizations_url":"https://api.github.com/users/bloomberg/orgs","repos_url":"https://api.github.com/users/bloomberg/repos","events_url":"https://api.github.com/users/bloomberg/events{/privacy}","received_events_url":"https://api.github.com/users/bloomberg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bloomberg/brisket","description":"Bloomberg's Brisket JavaScript application framework","fork":false,"url":"https://api.github.com/repos/bloomberg/brisket","forks_url":"https://api.github.com/repos/bloomberg/brisket/forks","keys_url":"https://api.github.com/repos/bloomberg/brisket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bloomberg/brisket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bloomberg/brisket/teams","hooks_url":"https://api.github.com/repos/bloomberg/brisket/hooks","issue_events_url":"https://api.github.com/repos/bloomberg/brisket/issues/events{/number}","events_url":"https://api.github.com/repos/bloomberg/brisket/events","assignees_url":"https://api.github.com/repos/bloomberg/brisket/assignees{/user}","branches_url":"https://api.github.com/repos/bloomberg/brisket/branches{/branch}","tags_url":"https://api.github.com/repos/bloomberg/brisket/tags","blobs_url":"https://api.github.com/repos/bloomberg/brisket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bloomberg/brisket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bloomberg/brisket/git/refs{/sha}","trees_url":"https://api.github.com/repos/bloomberg/brisket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bloomberg/brisket/statuses/{sha}","languages_url":"https://api.github.com/repos/bloomberg/brisket/languages","stargazers_url":"https://api.github.com/repos/bloomberg/brisket/stargazers","contributors_url":"https://api.github.com/repos/bloomberg/brisket/contributors","subscribers_url":"https://api.github.com/repos/bloomberg/brisket/subscribers","subscription_url":"https://api.github.com/repos/bloomberg/brisket/subscription","commits_url":"https://api.github.com/repos/bloomberg/brisket/commits{/sha}","git_commits_url":"https://api.github.com/repos/bloomberg/brisket/git/commits{/sha}","comments_url":"https://api.github.com/repos/bloomberg/brisket/comments{/number}","issue_comment_url":"https://api.github.com/repos/bloomberg/brisket/issues/comments{/number}","contents_url":"https://api.github.com/repos/bloomberg/brisket/contents/{+path}","compare_url":"https://api.github.com/repos/bloomberg/brisket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bloomberg/brisket/merges","archive_url":"https://api.github.com/repos/bloomberg/brisket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bloomberg/brisket/downloads","issues_url":"https://api.github.com/repos/bloomberg/brisket/issues{/number}","pulls_url":"https://api.github.com/repos/bloomberg/brisket/pulls{/number}","milestones_url":"https://api.github.com/repos/bloomberg/brisket/milestones{/number}","notifications_url":"https://api.github.com/repos/bloomberg/brisket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bloomberg/brisket/labels{/name}","releases_url":"https://api.github.com/repos/bloomberg/brisket/releases{/id}","created_at":"2014-09-30T20:17:08Z","updated_at":"2015-06-02T17:19:30Z","pushed_at":"2015-06-08T01:05:20Z","git_url":"git://github.com/bloomberg/brisket.git","ssh_url":"git@github.com:bloomberg/brisket.git","clone_url":"https://github.com/bloomberg/brisket.git","svn_url":"https://github.com/bloomberg/brisket","homepage":"","size":1302,"stargazers_count":711,"watchers_count":711,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":13,"forks":49,"open_issues":13,"watchers":711,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bloomberg/brisket/pulls/140"},"html":{"href":"https://github.com/bloomberg/brisket/pull/140"},"issue":{"href":"https://api.github.com/repos/bloomberg/brisket/issues/140"},"comments":{"href":"https://api.github.com/repos/bloomberg/brisket/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/bloomberg/brisket/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/bloomberg/brisket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bloomberg/brisket/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/bloomberg/brisket/statuses/8bcc2a0b964824d6a3aaab1a374d718a64a89e60"}}}}