{"action":"closed","number":1379,"pull_request":{"url":"https://api.github.com/repos/zotonic/zotonic/pulls/1379","id":80808963,"html_url":"https://github.com/zotonic/zotonic/pull/1379","diff_url":"https://github.com/zotonic/zotonic/pull/1379.diff","patch_url":"https://github.com/zotonic/zotonic/pull/1379.patch","issue_url":"https://api.github.com/repos/zotonic/zotonic/issues/1379","number":1379,"state":"closed","locked":false,"title":"mod_base: Fix Content-Security-Policy for inline PDFs","user":{"login":"ddeboer","id":89267,"avatar_url":"https://avatars.githubusercontent.com/u/89267?v=3","gravatar_id":"","url":"https://api.github.com/users/ddeboer","html_url":"https://github.com/ddeboer","followers_url":"https://api.github.com/users/ddeboer/followers","following_url":"https://api.github.com/users/ddeboer/following{/other_user}","gists_url":"https://api.github.com/users/ddeboer/gists{/gist_id}","starred_url":"https://api.github.com/users/ddeboer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddeboer/subscriptions","organizations_url":"https://api.github.com/users/ddeboer/orgs","repos_url":"https://api.github.com/users/ddeboer/repos","events_url":"https://api.github.com/users/ddeboer/events{/privacy}","received_events_url":"https://api.github.com/users/ddeboer/received_events","type":"User","site_admin":false},"body":"Inline content-disposed PDFs no longer render because of the Content-Security-Policy header recently added to `controller_file`. See for instance https://tudelft.openresearch.net/image/2016/8/8/ri_2016_minor_calendar_q1.pdf. This fixes that by allowing browser PDF plugins to render the file.","created_at":"2016-08-10T14:55:26Z","updated_at":"2016-08-11T08:23:24Z","closed_at":"2016-08-11T08:23:24Z","merged_at":"2016-08-11T08:23:24Z","merge_commit_sha":"edbdced18888d1d6e1ed9ac6bac61b2c8aa3b5f5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zotonic/zotonic/pulls/1379/commits","review_comments_url":"https://api.github.com/repos/zotonic/zotonic/pulls/1379/comments","review_comment_url":"https://api.github.com/repos/zotonic/zotonic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zotonic/zotonic/issues/1379/comments","statuses_url":"https://api.github.com/repos/zotonic/zotonic/statuses/88e8e292d86f0f84e1ef40fbdf7e3fd0fe92c61c","head":{"label":"zotonic:csp-inline-pdf","ref":"csp-inline-pdf","sha":"88e8e292d86f0f84e1ef40fbdf7e3fd0fe92c61c","user":{"login":"zotonic","id":829753,"avatar_url":"https://avatars.githubusercontent.com/u/829753?v=3","gravatar_id":"","url":"https://api.github.com/users/zotonic","html_url":"https://github.com/zotonic","followers_url":"https://api.github.com/users/zotonic/followers","following_url":"https://api.github.com/users/zotonic/following{/other_user}","gists_url":"https://api.github.com/users/zotonic/gists{/gist_id}","starred_url":"https://api.github.com/users/zotonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotonic/subscriptions","organizations_url":"https://api.github.com/users/zotonic/orgs","repos_url":"https://api.github.com/users/zotonic/repos","events_url":"https://api.github.com/users/zotonic/events{/privacy}","received_events_url":"https://api.github.com/users/zotonic/received_events","type":"Organization","site_admin":false},"repo":{"id":1847706,"name":"zotonic","full_name":"zotonic/zotonic","owner":{"login":"zotonic","id":829753,"avatar_url":"https://avatars.githubusercontent.com/u/829753?v=3","gravatar_id":"","url":"https://api.github.com/users/zotonic","html_url":"https://github.com/zotonic","followers_url":"https://api.github.com/users/zotonic/followers","following_url":"https://api.github.com/users/zotonic/following{/other_user}","gists_url":"https://api.github.com/users/zotonic/gists{/gist_id}","starred_url":"https://api.github.com/users/zotonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotonic/subscriptions","organizations_url":"https://api.github.com/users/zotonic/orgs","repos_url":"https://api.github.com/users/zotonic/repos","events_url":"https://api.github.com/users/zotonic/events{/privacy}","received_events_url":"https://api.github.com/users/zotonic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zotonic/zotonic","description":"Zotonic - The Erlang Web Framework & CMS","fork":false,"url":"https://api.github.com/repos/zotonic/zotonic","forks_url":"https://api.github.com/repos/zotonic/zotonic/forks","keys_url":"https://api.github.com/repos/zotonic/zotonic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zotonic/zotonic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zotonic/zotonic/teams","hooks_url":"https://api.github.com/repos/zotonic/zotonic/hooks","issue_events_url":"https://api.github.com/repos/zotonic/zotonic/issues/events{/number}","events_url":"https://api.github.com/repos/zotonic/zotonic/events","assignees_url":"https://api.github.com/repos/zotonic/zotonic/assignees{/user}","branches_url":"https://api.github.com/repos/zotonic/zotonic/branches{/branch}","tags_url":"https://api.github.com/repos/zotonic/zotonic/tags","blobs_url":"https://api.github.com/repos/zotonic/zotonic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zotonic/zotonic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zotonic/zotonic/git/refs{/sha}","trees_url":"https://api.github.com/repos/zotonic/zotonic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zotonic/zotonic/statuses/{sha}","languages_url":"https://api.github.com/repos/zotonic/zotonic/languages","stargazers_url":"https://api.github.com/repos/zotonic/zotonic/stargazers","contributors_url":"https://api.github.com/repos/zotonic/zotonic/contributors","subscribers_url":"https://api.github.com/repos/zotonic/zotonic/subscribers","subscription_url":"https://api.github.com/repos/zotonic/zotonic/subscription","commits_url":"https://api.github.com/repos/zotonic/zotonic/commits{/sha}","git_commits_url":"https://api.github.com/repos/zotonic/zotonic/git/commits{/sha}","comments_url":"https://api.github.com/repos/zotonic/zotonic/comments{/number}","issue_comment_url":"https://api.github.com/repos/zotonic/zotonic/issues/comments{/number}","contents_url":"https://api.github.com/repos/zotonic/zotonic/contents/{+path}","compare_url":"https://api.github.com/repos/zotonic/zotonic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zotonic/zotonic/merges","archive_url":"https://api.github.com/repos/zotonic/zotonic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zotonic/zotonic/downloads","issues_url":"https://api.github.com/repos/zotonic/zotonic/issues{/number}","pulls_url":"https://api.github.com/repos/zotonic/zotonic/pulls{/number}","milestones_url":"https://api.github.com/repos/zotonic/zotonic/milestones{/number}","notifications_url":"https://api.github.com/repos/zotonic/zotonic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zotonic/zotonic/labels{/name}","releases_url":"https://api.github.com/repos/zotonic/zotonic/releases{/id}","deployments_url":"https://api.github.com/repos/zotonic/zotonic/deployments","created_at":"2011-06-04T18:43:30Z","updated_at":"2016-08-10T15:15:51Z","pushed_at":"2016-08-11T08:23:24Z","git_url":"git://github.com/zotonic/zotonic.git","ssh_url":"git@github.com:zotonic/zotonic.git","clone_url":"https://github.com/zotonic/zotonic.git","svn_url":"https://github.com/zotonic/zotonic","homepage":"http://zotonic.com/","size":50517,"stargazers_count":461,"watchers_count":461,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":198,"forks":148,"open_issues":198,"watchers":461,"default_branch":"master"}},"base":{"label":"zotonic:0.x","ref":"0.x","sha":"c65c63449cd34bd0a6bb4d00db667bf15075ab5c","user":{"login":"zotonic","id":829753,"avatar_url":"https://avatars.githubusercontent.com/u/829753?v=3","gravatar_id":"","url":"https://api.github.com/users/zotonic","html_url":"https://github.com/zotonic","followers_url":"https://api.github.com/users/zotonic/followers","following_url":"https://api.github.com/users/zotonic/following{/other_user}","gists_url":"https://api.github.com/users/zotonic/gists{/gist_id}","starred_url":"https://api.github.com/users/zotonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotonic/subscriptions","organizations_url":"https://api.github.com/users/zotonic/orgs","repos_url":"https://api.github.com/users/zotonic/repos","events_url":"https://api.github.com/users/zotonic/events{/privacy}","received_events_url":"https://api.github.com/users/zotonic/received_events","type":"Organization","site_admin":false},"repo":{"id":1847706,"name":"zotonic","full_name":"zotonic/zotonic","owner":{"login":"zotonic","id":829753,"avatar_url":"https://avatars.githubusercontent.com/u/829753?v=3","gravatar_id":"","url":"https://api.github.com/users/zotonic","html_url":"https://github.com/zotonic","followers_url":"https://api.github.com/users/zotonic/followers","following_url":"https://api.github.com/users/zotonic/following{/other_user}","gists_url":"https://api.github.com/users/zotonic/gists{/gist_id}","starred_url":"https://api.github.com/users/zotonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotonic/subscriptions","organizations_url":"https://api.github.com/users/zotonic/orgs","repos_url":"https://api.github.com/users/zotonic/repos","events_url":"https://api.github.com/users/zotonic/events{/privacy}","received_events_url":"https://api.github.com/users/zotonic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zotonic/zotonic","description":"Zotonic - The Erlang Web Framework & CMS","fork":false,"url":"https://api.github.com/repos/zotonic/zotonic","forks_url":"https://api.github.com/repos/zotonic/zotonic/forks","keys_url":"https://api.github.com/repos/zotonic/zotonic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zotonic/zotonic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zotonic/zotonic/teams","hooks_url":"https://api.github.com/repos/zotonic/zotonic/hooks","issue_events_url":"https://api.github.com/repos/zotonic/zotonic/issues/events{/number}","events_url":"https://api.github.com/repos/zotonic/zotonic/events","assignees_url":"https://api.github.com/repos/zotonic/zotonic/assignees{/user}","branches_url":"https://api.github.com/repos/zotonic/zotonic/branches{/branch}","tags_url":"https://api.github.com/repos/zotonic/zotonic/tags","blobs_url":"https://api.github.com/repos/zotonic/zotonic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zotonic/zotonic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zotonic/zotonic/git/refs{/sha}","trees_url":"https://api.github.com/repos/zotonic/zotonic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zotonic/zotonic/statuses/{sha}","languages_url":"https://api.github.com/repos/zotonic/zotonic/languages","stargazers_url":"https://api.github.com/repos/zotonic/zotonic/stargazers","contributors_url":"https://api.github.com/repos/zotonic/zotonic/contributors","subscribers_url":"https://api.github.com/repos/zotonic/zotonic/subscribers","subscription_url":"https://api.github.com/repos/zotonic/zotonic/subscription","commits_url":"https://api.github.com/repos/zotonic/zotonic/commits{/sha}","git_commits_url":"https://api.github.com/repos/zotonic/zotonic/git/commits{/sha}","comments_url":"https://api.github.com/repos/zotonic/zotonic/comments{/number}","issue_comment_url":"https://api.github.com/repos/zotonic/zotonic/issues/comments{/number}","contents_url":"https://api.github.com/repos/zotonic/zotonic/contents/{+path}","compare_url":"https://api.github.com/repos/zotonic/zotonic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zotonic/zotonic/merges","archive_url":"https://api.github.com/repos/zotonic/zotonic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zotonic/zotonic/downloads","issues_url":"https://api.github.com/repos/zotonic/zotonic/issues{/number}","pulls_url":"https://api.github.com/repos/zotonic/zotonic/pulls{/number}","milestones_url":"https://api.github.com/repos/zotonic/zotonic/milestones{/number}","notifications_url":"https://api.github.com/repos/zotonic/zotonic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zotonic/zotonic/labels{/name}","releases_url":"https://api.github.com/repos/zotonic/zotonic/releases{/id}","deployments_url":"https://api.github.com/repos/zotonic/zotonic/deployments","created_at":"2011-06-04T18:43:30Z","updated_at":"2016-08-10T15:15:51Z","pushed_at":"2016-08-11T08:23:24Z","git_url":"git://github.com/zotonic/zotonic.git","ssh_url":"git@github.com:zotonic/zotonic.git","clone_url":"https://github.com/zotonic/zotonic.git","svn_url":"https://github.com/zotonic/zotonic","homepage":"http://zotonic.com/","size":50517,"stargazers_count":461,"watchers_count":461,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":198,"forks":148,"open_issues":198,"watchers":461,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zotonic/zotonic/pulls/1379"},"html":{"href":"https://github.com/zotonic/zotonic/pull/1379"},"issue":{"href":"https://api.github.com/repos/zotonic/zotonic/issues/1379"},"comments":{"href":"https://api.github.com/repos/zotonic/zotonic/issues/1379/comments"},"review_comments":{"href":"https://api.github.com/repos/zotonic/zotonic/pulls/1379/comments"},"review_comment":{"href":"https://api.github.com/repos/zotonic/zotonic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zotonic/zotonic/pulls/1379/commits"},"statuses":{"href":"https://api.github.com/repos/zotonic/zotonic/statuses/88e8e292d86f0f84e1ef40fbdf7e3fd0fe92c61c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ddeboer","id":89267,"avatar_url":"https://avatars.githubusercontent.com/u/89267?v=3","gravatar_id":"","url":"https://api.github.com/users/ddeboer","html_url":"https://github.com/ddeboer","followers_url":"https://api.github.com/users/ddeboer/followers","following_url":"https://api.github.com/users/ddeboer/following{/other_user}","gists_url":"https://api.github.com/users/ddeboer/gists{/gist_id}","starred_url":"https://api.github.com/users/ddeboer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddeboer/subscriptions","organizations_url":"https://api.github.com/users/ddeboer/orgs","repos_url":"https://api.github.com/users/ddeboer/repos","events_url":"https://api.github.com/users/ddeboer/events{/privacy}","received_events_url":"https://api.github.com/users/ddeboer/received_events","type":"User","site_admin":false},"comments":7,"review_comments":3,"commits":1,"additions":8,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"ddeboer"}}