{"action":"created","comment":{"url":"https://api.github.com/repos/recidive/choko/pulls/comments/35992766","id":35992766,"diff_hunk":"@@ -72,6 +73,18 @@ var Application = module.exports = function(settings) {\n     cookieParser()\n   ];\n \n+  // Settings cors middleware.\n+  if (this.settings && this.settings.cors) {","path":"lib/application.js","position":13,"original_position":13,"commit_id":"ed01dd806efcc0c07594668a36f3dce1fe02c5de","original_commit_id":"ed01dd806efcc0c07594668a36f3dce1fe02c5de","user":{"login":"recidive","id":162615,"avatar_url":"https://avatars.githubusercontent.com/u/162615?v=3","gravatar_id":"","url":"https://api.github.com/users/recidive","html_url":"https://github.com/recidive","followers_url":"https://api.github.com/users/recidive/followers","following_url":"https://api.github.com/users/recidive/following{/other_user}","gists_url":"https://api.github.com/users/recidive/gists{/gist_id}","starred_url":"https://api.github.com/users/recidive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recidive/subscriptions","organizations_url":"https://api.github.com/users/recidive/orgs","repos_url":"https://api.github.com/users/recidive/repos","events_url":"https://api.github.com/users/recidive/events{/privacy}","received_events_url":"https://api.github.com/users/recidive/received_events","type":"User","site_admin":false},"body":"`this.settings` always exist here, no need to check for it.","created_at":"2015-07-31T17:00:32Z","updated_at":"2015-07-31T17:00:32Z","html_url":"https://github.com/recidive/choko/pull/203#discussion_r35992766","pull_request_url":"https://api.github.com/repos/recidive/choko/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/recidive/choko/pulls/comments/35992766"},"html":{"href":"https://github.com/recidive/choko/pull/203#discussion_r35992766"},"pull_request":{"href":"https://api.github.com/repos/recidive/choko/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/recidive/choko/pulls/203","id":23241230,"html_url":"https://github.com/recidive/choko/pull/203","diff_url":"https://github.com/recidive/choko/pull/203.diff","patch_url":"https://github.com/recidive/choko/pull/203.patch","issue_url":"https://api.github.com/repos/recidive/choko/issues/203","number":203,"state":"open","locked":false,"title":"Added cors middleware","user":{"login":"jardix22","id":1317294,"avatar_url":"https://avatars.githubusercontent.com/u/1317294?v=3","gravatar_id":"","url":"https://api.github.com/users/jardix22","html_url":"https://github.com/jardix22","followers_url":"https://api.github.com/users/jardix22/followers","following_url":"https://api.github.com/users/jardix22/following{/other_user}","gists_url":"https://api.github.com/users/jardix22/gists{/gist_id}","starred_url":"https://api.github.com/users/jardix22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jardix22/subscriptions","organizations_url":"https://api.github.com/users/jardix22/orgs","repos_url":"https://api.github.com/users/jardix22/repos","events_url":"https://api.github.com/users/jardix22/events{/privacy}","received_events_url":"https://api.github.com/users/jardix22/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-10-23T16:36:07Z","updated_at":"2015-07-31T17:00:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8a5ffe34b697e8414b30a9f023f9978407cd8b5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/recidive/choko/pulls/203/commits","review_comments_url":"https://api.github.com/repos/recidive/choko/pulls/203/comments","review_comment_url":"https://api.github.com/repos/recidive/choko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/recidive/choko/issues/203/comments","statuses_url":"https://api.github.com/repos/recidive/choko/statuses/ed01dd806efcc0c07594668a36f3dce1fe02c5de","head":{"label":"TallerWebSolutions:fs/cors-middleware","ref":"fs/cors-middleware","sha":"ed01dd806efcc0c07594668a36f3dce1fe02c5de","user":{"login":"TallerWebSolutions","id":5984356,"avatar_url":"https://avatars.githubusercontent.com/u/5984356?v=3","gravatar_id":"","url":"https://api.github.com/users/TallerWebSolutions","html_url":"https://github.com/TallerWebSolutions","followers_url":"https://api.github.com/users/TallerWebSolutions/followers","following_url":"https://api.github.com/users/TallerWebSolutions/following{/other_user}","gists_url":"https://api.github.com/users/TallerWebSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/TallerWebSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TallerWebSolutions/subscriptions","organizations_url":"https://api.github.com/users/TallerWebSolutions/orgs","repos_url":"https://api.github.com/users/TallerWebSolutions/repos","events_url":"https://api.github.com/users/TallerWebSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/TallerWebSolutions/received_events","type":"Organization","site_admin":false},"repo":{"id":19872994,"name":"choko","full_name":"TallerWebSolutions/choko","owner":{"login":"TallerWebSolutions","id":5984356,"avatar_url":"https://avatars.githubusercontent.com/u/5984356?v=3","gravatar_id":"","url":"https://api.github.com/users/TallerWebSolutions","html_url":"https://github.com/TallerWebSolutions","followers_url":"https://api.github.com/users/TallerWebSolutions/followers","following_url":"https://api.github.com/users/TallerWebSolutions/following{/other_user}","gists_url":"https://api.github.com/users/TallerWebSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/TallerWebSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TallerWebSolutions/subscriptions","organizations_url":"https://api.github.com/users/TallerWebSolutions/orgs","repos_url":"https://api.github.com/users/TallerWebSolutions/repos","events_url":"https://api.github.com/users/TallerWebSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/TallerWebSolutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TallerWebSolutions/choko","description":"Taller Fork of Choko Framework","fork":true,"url":"https://api.github.com/repos/TallerWebSolutions/choko","forks_url":"https://api.github.com/repos/TallerWebSolutions/choko/forks","keys_url":"https://api.github.com/repos/TallerWebSolutions/choko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TallerWebSolutions/choko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TallerWebSolutions/choko/teams","hooks_url":"https://api.github.com/repos/TallerWebSolutions/choko/hooks","issue_events_url":"https://api.github.com/repos/TallerWebSolutions/choko/issues/events{/number}","events_url":"https://api.github.com/repos/TallerWebSolutions/choko/events","assignees_url":"https://api.github.com/repos/TallerWebSolutions/choko/assignees{/user}","branches_url":"https://api.github.com/repos/TallerWebSolutions/choko/branches{/branch}","tags_url":"https://api.github.com/repos/TallerWebSolutions/choko/tags","blobs_url":"https://api.github.com/repos/TallerWebSolutions/choko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TallerWebSolutions/choko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TallerWebSolutions/choko/git/refs{/sha}","trees_url":"https://api.github.com/repos/TallerWebSolutions/choko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TallerWebSolutions/choko/statuses/{sha}","languages_url":"https://api.github.com/repos/TallerWebSolutions/choko/languages","stargazers_url":"https://api.github.com/repos/TallerWebSolutions/choko/stargazers","contributors_url":"https://api.github.com/repos/TallerWebSolutions/choko/contributors","subscribers_url":"https://api.github.com/repos/TallerWebSolutions/choko/subscribers","subscription_url":"https://api.github.com/repos/TallerWebSolutions/choko/subscription","commits_url":"https://api.github.com/repos/TallerWebSolutions/choko/commits{/sha}","git_commits_url":"https://api.github.com/repos/TallerWebSolutions/choko/git/commits{/sha}","comments_url":"https://api.github.com/repos/TallerWebSolutions/choko/comments{/number}","issue_comment_url":"https://api.github.com/repos/TallerWebSolutions/choko/issues/comments{/number}","contents_url":"https://api.github.com/repos/TallerWebSolutions/choko/contents/{+path}","compare_url":"https://api.github.com/repos/TallerWebSolutions/choko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TallerWebSolutions/choko/merges","archive_url":"https://api.github.com/repos/TallerWebSolutions/choko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TallerWebSolutions/choko/downloads","issues_url":"https://api.github.com/repos/TallerWebSolutions/choko/issues{/number}","pulls_url":"https://api.github.com/repos/TallerWebSolutions/choko/pulls{/number}","milestones_url":"https://api.github.com/repos/TallerWebSolutions/choko/milestones{/number}","notifications_url":"https://api.github.com/repos/TallerWebSolutions/choko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TallerWebSolutions/choko/labels{/name}","releases_url":"https://api.github.com/repos/TallerWebSolutions/choko/releases{/id}","created_at":"2014-05-16T22:49:56Z","updated_at":"2015-07-28T18:32:59Z","pushed_at":"2015-07-31T04:31:22Z","git_url":"git://github.com/TallerWebSolutions/choko.git","ssh_url":"git@github.com:TallerWebSolutions/choko.git","clone_url":"https://github.com/TallerWebSolutions/choko.git","svn_url":"https://github.com/TallerWebSolutions/choko","homepage":"","size":5881,"stargazers_count":1,"watchers_count":1,"language":"HTML","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":1,"default_branch":"taller"}},"base":{"label":"recidive:master","ref":"master","sha":"95aca4ee6441954a38d593136e4e24666d4296b6","user":{"login":"recidive","id":162615,"avatar_url":"https://avatars.githubusercontent.com/u/162615?v=3","gravatar_id":"","url":"https://api.github.com/users/recidive","html_url":"https://github.com/recidive","followers_url":"https://api.github.com/users/recidive/followers","following_url":"https://api.github.com/users/recidive/following{/other_user}","gists_url":"https://api.github.com/users/recidive/gists{/gist_id}","starred_url":"https://api.github.com/users/recidive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recidive/subscriptions","organizations_url":"https://api.github.com/users/recidive/orgs","repos_url":"https://api.github.com/users/recidive/repos","events_url":"https://api.github.com/users/recidive/events{/privacy}","received_events_url":"https://api.github.com/users/recidive/received_events","type":"User","site_admin":false},"repo":{"id":14108697,"name":"choko","full_name":"recidive/choko","owner":{"login":"recidive","id":162615,"avatar_url":"https://avatars.githubusercontent.com/u/162615?v=3","gravatar_id":"","url":"https://api.github.com/users/recidive","html_url":"https://github.com/recidive","followers_url":"https://api.github.com/users/recidive/followers","following_url":"https://api.github.com/users/recidive/following{/other_user}","gists_url":"https://api.github.com/users/recidive/gists{/gist_id}","starred_url":"https://api.github.com/users/recidive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recidive/subscriptions","organizations_url":"https://api.github.com/users/recidive/orgs","repos_url":"https://api.github.com/users/recidive/repos","events_url":"https://api.github.com/users/recidive/events{/privacy}","received_events_url":"https://api.github.com/users/recidive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/recidive/choko","description":"Choko Framework","fork":false,"url":"https://api.github.com/repos/recidive/choko","forks_url":"https://api.github.com/repos/recidive/choko/forks","keys_url":"https://api.github.com/repos/recidive/choko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/recidive/choko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/recidive/choko/teams","hooks_url":"https://api.github.com/repos/recidive/choko/hooks","issue_events_url":"https://api.github.com/repos/recidive/choko/issues/events{/number}","events_url":"https://api.github.com/repos/recidive/choko/events","assignees_url":"https://api.github.com/repos/recidive/choko/assignees{/user}","branches_url":"https://api.github.com/repos/recidive/choko/branches{/branch}","tags_url":"https://api.github.com/repos/recidive/choko/tags","blobs_url":"https://api.github.com/repos/recidive/choko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/recidive/choko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/recidive/choko/git/refs{/sha}","trees_url":"https://api.github.com/repos/recidive/choko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/recidive/choko/statuses/{sha}","languages_url":"https://api.github.com/repos/recidive/choko/languages","stargazers_url":"https://api.github.com/repos/recidive/choko/stargazers","contributors_url":"https://api.github.com/repos/recidive/choko/contributors","subscribers_url":"https://api.github.com/repos/recidive/choko/subscribers","subscription_url":"https://api.github.com/repos/recidive/choko/subscription","commits_url":"https://api.github.com/repos/recidive/choko/commits{/sha}","git_commits_url":"https://api.github.com/repos/recidive/choko/git/commits{/sha}","comments_url":"https://api.github.com/repos/recidive/choko/comments{/number}","issue_comment_url":"https://api.github.com/repos/recidive/choko/issues/comments{/number}","contents_url":"https://api.github.com/repos/recidive/choko/contents/{+path}","compare_url":"https://api.github.com/repos/recidive/choko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/recidive/choko/merges","archive_url":"https://api.github.com/repos/recidive/choko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/recidive/choko/downloads","issues_url":"https://api.github.com/repos/recidive/choko/issues{/number}","pulls_url":"https://api.github.com/repos/recidive/choko/pulls{/number}","milestones_url":"https://api.github.com/repos/recidive/choko/milestones{/number}","notifications_url":"https://api.github.com/repos/recidive/choko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/recidive/choko/labels{/name}","releases_url":"https://api.github.com/repos/recidive/choko/releases{/id}","created_at":"2013-11-04T12:13:56Z","updated_at":"2015-07-27T14:54:03Z","pushed_at":"2015-07-31T04:31:22Z","git_url":"git://github.com/recidive/choko.git","ssh_url":"git@github.com:recidive/choko.git","clone_url":"https://github.com/recidive/choko.git","svn_url":"https://github.com/recidive/choko","homepage":"http://choko.org","size":5353,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":126,"forks":11,"open_issues":126,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/recidive/choko/pulls/203"},"html":{"href":"https://github.com/recidive/choko/pull/203"},"issue":{"href":"https://api.github.com/repos/recidive/choko/issues/203"},"comments":{"href":"https://api.github.com/repos/recidive/choko/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/recidive/choko/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/recidive/choko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/recidive/choko/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/recidive/choko/statuses/ed01dd806efcc0c07594668a36f3dce1fe02c5de"}}}}