{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/shesek/express-safe-json/pulls/2","id":55685218,"html_url":"https://github.com/shesek/express-safe-json/pull/2","diff_url":"https://github.com/shesek/express-safe-json/pull/2.diff","patch_url":"https://github.com/shesek/express-safe-json/pull/2.patch","issue_url":"https://api.github.com/repos/shesek/express-safe-json/issues/2","number":2,"state":"closed","locked":false,"title":"Better sniffing of content type.","user":{"login":"tswaters","id":7309368,"avatar_url":"https://avatars.githubusercontent.com/u/7309368?v=3","gravatar_id":"","url":"https://api.github.com/users/tswaters","html_url":"https://github.com/tswaters","followers_url":"https://api.github.com/users/tswaters/followers","following_url":"https://api.github.com/users/tswaters/following{/other_user}","gists_url":"https://api.github.com/users/tswaters/gists{/gist_id}","starred_url":"https://api.github.com/users/tswaters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tswaters/subscriptions","organizations_url":"https://api.github.com/users/tswaters/orgs","repos_url":"https://api.github.com/users/tswaters/repos","events_url":"https://api.github.com/users/tswaters/events{/privacy}","received_events_url":"https://api.github.com/users/tswaters/received_events","type":"User","site_admin":false},"body":"In the current version of express, the charset is appended to the content\r\ntype. Update the sniffing to check for the presence of `application/json`\r\nand not the exact string.\r\n\r\nFixes #1","created_at":"2016-01-11T22:06:58Z","updated_at":"2016-03-03T12:21:25Z","closed_at":"2016-03-03T12:21:25Z","merged_at":null,"merge_commit_sha":"fa87b01b3918e5ce7e1dd38cd747e54d406cf9c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shesek/express-safe-json/pulls/2/commits","review_comments_url":"https://api.github.com/repos/shesek/express-safe-json/pulls/2/comments","review_comment_url":"https://api.github.com/repos/shesek/express-safe-json/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shesek/express-safe-json/issues/2/comments","statuses_url":"https://api.github.com/repos/shesek/express-safe-json/statuses/63eaf237092d3a204f50b1f32b726f3834335d81","head":{"label":"tswaters:master","ref":"master","sha":"63eaf237092d3a204f50b1f32b726f3834335d81","user":{"login":"tswaters","id":7309368,"avatar_url":"https://avatars.githubusercontent.com/u/7309368?v=3","gravatar_id":"","url":"https://api.github.com/users/tswaters","html_url":"https://github.com/tswaters","followers_url":"https://api.github.com/users/tswaters/followers","following_url":"https://api.github.com/users/tswaters/following{/other_user}","gists_url":"https://api.github.com/users/tswaters/gists{/gist_id}","starred_url":"https://api.github.com/users/tswaters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tswaters/subscriptions","organizations_url":"https://api.github.com/users/tswaters/orgs","repos_url":"https://api.github.com/users/tswaters/repos","events_url":"https://api.github.com/users/tswaters/events{/privacy}","received_events_url":"https://api.github.com/users/tswaters/received_events","type":"User","site_admin":false},"repo":{"id":49456625,"name":"express-safe-json","full_name":"tswaters/express-safe-json","owner":{"login":"tswaters","id":7309368,"avatar_url":"https://avatars.githubusercontent.com/u/7309368?v=3","gravatar_id":"","url":"https://api.github.com/users/tswaters","html_url":"https://github.com/tswaters","followers_url":"https://api.github.com/users/tswaters/followers","following_url":"https://api.github.com/users/tswaters/following{/other_user}","gists_url":"https://api.github.com/users/tswaters/gists{/gist_id}","starred_url":"https://api.github.com/users/tswaters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tswaters/subscriptions","organizations_url":"https://api.github.com/users/tswaters/orgs","repos_url":"https://api.github.com/users/tswaters/repos","events_url":"https://api.github.com/users/tswaters/events{/privacy}","received_events_url":"https://api.github.com/users/tswaters/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tswaters/express-safe-json","description":"Prevent HTML tags from rendering in JSON responses.","fork":true,"url":"https://api.github.com/repos/tswaters/express-safe-json","forks_url":"https://api.github.com/repos/tswaters/express-safe-json/forks","keys_url":"https://api.github.com/repos/tswaters/express-safe-json/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tswaters/express-safe-json/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tswaters/express-safe-json/teams","hooks_url":"https://api.github.com/repos/tswaters/express-safe-json/hooks","issue_events_url":"https://api.github.com/repos/tswaters/express-safe-json/issues/events{/number}","events_url":"https://api.github.com/repos/tswaters/express-safe-json/events","assignees_url":"https://api.github.com/repos/tswaters/express-safe-json/assignees{/user}","branches_url":"https://api.github.com/repos/tswaters/express-safe-json/branches{/branch}","tags_url":"https://api.github.com/repos/tswaters/express-safe-json/tags","blobs_url":"https://api.github.com/repos/tswaters/express-safe-json/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tswaters/express-safe-json/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tswaters/express-safe-json/git/refs{/sha}","trees_url":"https://api.github.com/repos/tswaters/express-safe-json/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tswaters/express-safe-json/statuses/{sha}","languages_url":"https://api.github.com/repos/tswaters/express-safe-json/languages","stargazers_url":"https://api.github.com/repos/tswaters/express-safe-json/stargazers","contributors_url":"https://api.github.com/repos/tswaters/express-safe-json/contributors","subscribers_url":"https://api.github.com/repos/tswaters/express-safe-json/subscribers","subscription_url":"https://api.github.com/repos/tswaters/express-safe-json/subscription","commits_url":"https://api.github.com/repos/tswaters/express-safe-json/commits{/sha}","git_commits_url":"https://api.github.com/repos/tswaters/express-safe-json/git/commits{/sha}","comments_url":"https://api.github.com/repos/tswaters/express-safe-json/comments{/number}","issue_comment_url":"https://api.github.com/repos/tswaters/express-safe-json/issues/comments{/number}","contents_url":"https://api.github.com/repos/tswaters/express-safe-json/contents/{+path}","compare_url":"https://api.github.com/repos/tswaters/express-safe-json/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tswaters/express-safe-json/merges","archive_url":"https://api.github.com/repos/tswaters/express-safe-json/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tswaters/express-safe-json/downloads","issues_url":"https://api.github.com/repos/tswaters/express-safe-json/issues{/number}","pulls_url":"https://api.github.com/repos/tswaters/express-safe-json/pulls{/number}","milestones_url":"https://api.github.com/repos/tswaters/express-safe-json/milestones{/number}","notifications_url":"https://api.github.com/repos/tswaters/express-safe-json/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tswaters/express-safe-json/labels{/name}","releases_url":"https://api.github.com/repos/tswaters/express-safe-json/releases{/id}","deployments_url":"https://api.github.com/repos/tswaters/express-safe-json/deployments","created_at":"2016-01-11T21:48:13Z","updated_at":"2016-01-11T21:48:14Z","pushed_at":"2016-01-11T22:06:09Z","git_url":"git://github.com/tswaters/express-safe-json.git","ssh_url":"git@github.com:tswaters/express-safe-json.git","clone_url":"https://github.com/tswaters/express-safe-json.git","svn_url":"https://github.com/tswaters/express-safe-json","homepage":null,"size":2,"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":"shesek:master","ref":"master","sha":"afc5f71ce22d77a8f52db81ba7cf7796839f688b","user":{"login":"shesek","id":877904,"avatar_url":"https://avatars.githubusercontent.com/u/877904?v=3","gravatar_id":"","url":"https://api.github.com/users/shesek","html_url":"https://github.com/shesek","followers_url":"https://api.github.com/users/shesek/followers","following_url":"https://api.github.com/users/shesek/following{/other_user}","gists_url":"https://api.github.com/users/shesek/gists{/gist_id}","starred_url":"https://api.github.com/users/shesek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shesek/subscriptions","organizations_url":"https://api.github.com/users/shesek/orgs","repos_url":"https://api.github.com/users/shesek/repos","events_url":"https://api.github.com/users/shesek/events{/privacy}","received_events_url":"https://api.github.com/users/shesek/received_events","type":"User","site_admin":false},"repo":{"id":21884636,"name":"express-safe-json","full_name":"shesek/express-safe-json","owner":{"login":"shesek","id":877904,"avatar_url":"https://avatars.githubusercontent.com/u/877904?v=3","gravatar_id":"","url":"https://api.github.com/users/shesek","html_url":"https://github.com/shesek","followers_url":"https://api.github.com/users/shesek/followers","following_url":"https://api.github.com/users/shesek/following{/other_user}","gists_url":"https://api.github.com/users/shesek/gists{/gist_id}","starred_url":"https://api.github.com/users/shesek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shesek/subscriptions","organizations_url":"https://api.github.com/users/shesek/orgs","repos_url":"https://api.github.com/users/shesek/repos","events_url":"https://api.github.com/users/shesek/events{/privacy}","received_events_url":"https://api.github.com/users/shesek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shesek/express-safe-json","description":"Prevent HTML tags from rendering in JSON responses.","fork":false,"url":"https://api.github.com/repos/shesek/express-safe-json","forks_url":"https://api.github.com/repos/shesek/express-safe-json/forks","keys_url":"https://api.github.com/repos/shesek/express-safe-json/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shesek/express-safe-json/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shesek/express-safe-json/teams","hooks_url":"https://api.github.com/repos/shesek/express-safe-json/hooks","issue_events_url":"https://api.github.com/repos/shesek/express-safe-json/issues/events{/number}","events_url":"https://api.github.com/repos/shesek/express-safe-json/events","assignees_url":"https://api.github.com/repos/shesek/express-safe-json/assignees{/user}","branches_url":"https://api.github.com/repos/shesek/express-safe-json/branches{/branch}","tags_url":"https://api.github.com/repos/shesek/express-safe-json/tags","blobs_url":"https://api.github.com/repos/shesek/express-safe-json/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shesek/express-safe-json/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shesek/express-safe-json/git/refs{/sha}","trees_url":"https://api.github.com/repos/shesek/express-safe-json/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shesek/express-safe-json/statuses/{sha}","languages_url":"https://api.github.com/repos/shesek/express-safe-json/languages","stargazers_url":"https://api.github.com/repos/shesek/express-safe-json/stargazers","contributors_url":"https://api.github.com/repos/shesek/express-safe-json/contributors","subscribers_url":"https://api.github.com/repos/shesek/express-safe-json/subscribers","subscription_url":"https://api.github.com/repos/shesek/express-safe-json/subscription","commits_url":"https://api.github.com/repos/shesek/express-safe-json/commits{/sha}","git_commits_url":"https://api.github.com/repos/shesek/express-safe-json/git/commits{/sha}","comments_url":"https://api.github.com/repos/shesek/express-safe-json/comments{/number}","issue_comment_url":"https://api.github.com/repos/shesek/express-safe-json/issues/comments{/number}","contents_url":"https://api.github.com/repos/shesek/express-safe-json/contents/{+path}","compare_url":"https://api.github.com/repos/shesek/express-safe-json/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shesek/express-safe-json/merges","archive_url":"https://api.github.com/repos/shesek/express-safe-json/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shesek/express-safe-json/downloads","issues_url":"https://api.github.com/repos/shesek/express-safe-json/issues{/number}","pulls_url":"https://api.github.com/repos/shesek/express-safe-json/pulls{/number}","milestones_url":"https://api.github.com/repos/shesek/express-safe-json/milestones{/number}","notifications_url":"https://api.github.com/repos/shesek/express-safe-json/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shesek/express-safe-json/labels{/name}","releases_url":"https://api.github.com/repos/shesek/express-safe-json/releases{/id}","deployments_url":"https://api.github.com/repos/shesek/express-safe-json/deployments","created_at":"2014-07-16T03:06:39Z","updated_at":"2016-03-03T12:18:47Z","pushed_at":"2016-03-03T12:18:44Z","git_url":"git://github.com/shesek/express-safe-json.git","ssh_url":"git@github.com:shesek/express-safe-json.git","clone_url":"https://github.com/shesek/express-safe-json.git","svn_url":"https://github.com/shesek/express-safe-json","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shesek/express-safe-json/pulls/2"},"html":{"href":"https://github.com/shesek/express-safe-json/pull/2"},"issue":{"href":"https://api.github.com/repos/shesek/express-safe-json/issues/2"},"comments":{"href":"https://api.github.com/repos/shesek/express-safe-json/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/shesek/express-safe-json/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/shesek/express-safe-json/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shesek/express-safe-json/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/shesek/express-safe-json/statuses/63eaf237092d3a204f50b1f32b726f3834335d81"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":2}}