{"action":"opened","number":294,"pull_request":{"url":"https://api.github.com/repos/getkirby/kirby/pulls/294","id":42790268,"html_url":"https://github.com/getkirby/kirby/pull/294","diff_url":"https://github.com/getkirby/kirby/pull/294.diff","patch_url":"https://github.com/getkirby/kirby/pull/294.patch","issue_url":"https://api.github.com/repos/getkirby/kirby/issues/294","number":294,"state":"open","locked":false,"title":"headers option with wildcard function","user":{"login":"jbeyerstedt","id":4568682,"avatar_url":"https://avatars.githubusercontent.com/u/4568682?v=3","gravatar_id":"","url":"https://api.github.com/users/jbeyerstedt","html_url":"https://github.com/jbeyerstedt","followers_url":"https://api.github.com/users/jbeyerstedt/followers","following_url":"https://api.github.com/users/jbeyerstedt/following{/other_user}","gists_url":"https://api.github.com/users/jbeyerstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/jbeyerstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbeyerstedt/subscriptions","organizations_url":"https://api.github.com/users/jbeyerstedt/orgs","repos_url":"https://api.github.com/users/jbeyerstedt/repos","events_url":"https://api.github.com/users/jbeyerstedt/events{/privacy}","received_events_url":"https://api.github.com/users/jbeyerstedt/received_events","type":"User","site_admin":false},"body":"As discussed in this <http://forum.getkirby.com/t/add-headers-to-the-http-response/1825> forum thread, I have added some wildcard function to the headers option of kirby.\r\nI needed this to add some http response header to all of my pages, but I don´t want to duplicate the code for each template, eventually missing template recently added.","created_at":"2015-08-19T08:49:08Z","updated_at":"2015-08-19T08:49:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getkirby/kirby/pulls/294/commits","review_comments_url":"https://api.github.com/repos/getkirby/kirby/pulls/294/comments","review_comment_url":"https://api.github.com/repos/getkirby/kirby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getkirby/kirby/issues/294/comments","statuses_url":"https://api.github.com/repos/getkirby/kirby/statuses/cb137feb56034efdc2d4f965504455e1392c9f4e","head":{"label":"jbeyerstedt:feature/headers-wildcard","ref":"feature/headers-wildcard","sha":"cb137feb56034efdc2d4f965504455e1392c9f4e","user":{"login":"jbeyerstedt","id":4568682,"avatar_url":"https://avatars.githubusercontent.com/u/4568682?v=3","gravatar_id":"","url":"https://api.github.com/users/jbeyerstedt","html_url":"https://github.com/jbeyerstedt","followers_url":"https://api.github.com/users/jbeyerstedt/followers","following_url":"https://api.github.com/users/jbeyerstedt/following{/other_user}","gists_url":"https://api.github.com/users/jbeyerstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/jbeyerstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbeyerstedt/subscriptions","organizations_url":"https://api.github.com/users/jbeyerstedt/orgs","repos_url":"https://api.github.com/users/jbeyerstedt/repos","events_url":"https://api.github.com/users/jbeyerstedt/events{/privacy}","received_events_url":"https://api.github.com/users/jbeyerstedt/received_events","type":"User","site_admin":false},"repo":{"id":41021663,"name":"kirby","full_name":"jbeyerstedt/kirby","owner":{"login":"jbeyerstedt","id":4568682,"avatar_url":"https://avatars.githubusercontent.com/u/4568682?v=3","gravatar_id":"","url":"https://api.github.com/users/jbeyerstedt","html_url":"https://github.com/jbeyerstedt","followers_url":"https://api.github.com/users/jbeyerstedt/followers","following_url":"https://api.github.com/users/jbeyerstedt/following{/other_user}","gists_url":"https://api.github.com/users/jbeyerstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/jbeyerstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbeyerstedt/subscriptions","organizations_url":"https://api.github.com/users/jbeyerstedt/orgs","repos_url":"https://api.github.com/users/jbeyerstedt/repos","events_url":"https://api.github.com/users/jbeyerstedt/events{/privacy}","received_events_url":"https://api.github.com/users/jbeyerstedt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbeyerstedt/kirby","description":"Kirby's core system folder","fork":true,"url":"https://api.github.com/repos/jbeyerstedt/kirby","forks_url":"https://api.github.com/repos/jbeyerstedt/kirby/forks","keys_url":"https://api.github.com/repos/jbeyerstedt/kirby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbeyerstedt/kirby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbeyerstedt/kirby/teams","hooks_url":"https://api.github.com/repos/jbeyerstedt/kirby/hooks","issue_events_url":"https://api.github.com/repos/jbeyerstedt/kirby/issues/events{/number}","events_url":"https://api.github.com/repos/jbeyerstedt/kirby/events","assignees_url":"https://api.github.com/repos/jbeyerstedt/kirby/assignees{/user}","branches_url":"https://api.github.com/repos/jbeyerstedt/kirby/branches{/branch}","tags_url":"https://api.github.com/repos/jbeyerstedt/kirby/tags","blobs_url":"https://api.github.com/repos/jbeyerstedt/kirby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbeyerstedt/kirby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbeyerstedt/kirby/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbeyerstedt/kirby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbeyerstedt/kirby/statuses/{sha}","languages_url":"https://api.github.com/repos/jbeyerstedt/kirby/languages","stargazers_url":"https://api.github.com/repos/jbeyerstedt/kirby/stargazers","contributors_url":"https://api.github.com/repos/jbeyerstedt/kirby/contributors","subscribers_url":"https://api.github.com/repos/jbeyerstedt/kirby/subscribers","subscription_url":"https://api.github.com/repos/jbeyerstedt/kirby/subscription","commits_url":"https://api.github.com/repos/jbeyerstedt/kirby/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbeyerstedt/kirby/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbeyerstedt/kirby/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbeyerstedt/kirby/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbeyerstedt/kirby/contents/{+path}","compare_url":"https://api.github.com/repos/jbeyerstedt/kirby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbeyerstedt/kirby/merges","archive_url":"https://api.github.com/repos/jbeyerstedt/kirby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbeyerstedt/kirby/downloads","issues_url":"https://api.github.com/repos/jbeyerstedt/kirby/issues{/number}","pulls_url":"https://api.github.com/repos/jbeyerstedt/kirby/pulls{/number}","milestones_url":"https://api.github.com/repos/jbeyerstedt/kirby/milestones{/number}","notifications_url":"https://api.github.com/repos/jbeyerstedt/kirby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbeyerstedt/kirby/labels{/name}","releases_url":"https://api.github.com/repos/jbeyerstedt/kirby/releases{/id}","created_at":"2015-08-19T08:12:18Z","updated_at":"2015-08-19T08:12:19Z","pushed_at":"2015-08-19T08:43:57Z","git_url":"git://github.com/jbeyerstedt/kirby.git","ssh_url":"git@github.com:jbeyerstedt/kirby.git","clone_url":"https://github.com/jbeyerstedt/kirby.git","svn_url":"https://github.com/jbeyerstedt/kirby","homepage":"http://getkirby.com","size":1868,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"getkirby:master","ref":"master","sha":"5028f0a276d18fab1d8cd8e4e241b6d4293e5fb8","user":{"login":"getkirby","id":6985611,"avatar_url":"https://avatars.githubusercontent.com/u/6985611?v=3","gravatar_id":"","url":"https://api.github.com/users/getkirby","html_url":"https://github.com/getkirby","followers_url":"https://api.github.com/users/getkirby/followers","following_url":"https://api.github.com/users/getkirby/following{/other_user}","gists_url":"https://api.github.com/users/getkirby/gists{/gist_id}","starred_url":"https://api.github.com/users/getkirby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getkirby/subscriptions","organizations_url":"https://api.github.com/users/getkirby/orgs","repos_url":"https://api.github.com/users/getkirby/repos","events_url":"https://api.github.com/users/getkirby/events{/privacy}","received_events_url":"https://api.github.com/users/getkirby/received_events","type":"Organization","site_admin":false},"repo":{"id":17861081,"name":"kirby","full_name":"getkirby/kirby","owner":{"login":"getkirby","id":6985611,"avatar_url":"https://avatars.githubusercontent.com/u/6985611?v=3","gravatar_id":"","url":"https://api.github.com/users/getkirby","html_url":"https://github.com/getkirby","followers_url":"https://api.github.com/users/getkirby/followers","following_url":"https://api.github.com/users/getkirby/following{/other_user}","gists_url":"https://api.github.com/users/getkirby/gists{/gist_id}","starred_url":"https://api.github.com/users/getkirby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getkirby/subscriptions","organizations_url":"https://api.github.com/users/getkirby/orgs","repos_url":"https://api.github.com/users/getkirby/repos","events_url":"https://api.github.com/users/getkirby/events{/privacy}","received_events_url":"https://api.github.com/users/getkirby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getkirby/kirby","description":"Kirby's core system folder","fork":false,"url":"https://api.github.com/repos/getkirby/kirby","forks_url":"https://api.github.com/repos/getkirby/kirby/forks","keys_url":"https://api.github.com/repos/getkirby/kirby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getkirby/kirby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getkirby/kirby/teams","hooks_url":"https://api.github.com/repos/getkirby/kirby/hooks","issue_events_url":"https://api.github.com/repos/getkirby/kirby/issues/events{/number}","events_url":"https://api.github.com/repos/getkirby/kirby/events","assignees_url":"https://api.github.com/repos/getkirby/kirby/assignees{/user}","branches_url":"https://api.github.com/repos/getkirby/kirby/branches{/branch}","tags_url":"https://api.github.com/repos/getkirby/kirby/tags","blobs_url":"https://api.github.com/repos/getkirby/kirby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getkirby/kirby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getkirby/kirby/git/refs{/sha}","trees_url":"https://api.github.com/repos/getkirby/kirby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getkirby/kirby/statuses/{sha}","languages_url":"https://api.github.com/repos/getkirby/kirby/languages","stargazers_url":"https://api.github.com/repos/getkirby/kirby/stargazers","contributors_url":"https://api.github.com/repos/getkirby/kirby/contributors","subscribers_url":"https://api.github.com/repos/getkirby/kirby/subscribers","subscription_url":"https://api.github.com/repos/getkirby/kirby/subscription","commits_url":"https://api.github.com/repos/getkirby/kirby/commits{/sha}","git_commits_url":"https://api.github.com/repos/getkirby/kirby/git/commits{/sha}","comments_url":"https://api.github.com/repos/getkirby/kirby/comments{/number}","issue_comment_url":"https://api.github.com/repos/getkirby/kirby/issues/comments{/number}","contents_url":"https://api.github.com/repos/getkirby/kirby/contents/{+path}","compare_url":"https://api.github.com/repos/getkirby/kirby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getkirby/kirby/merges","archive_url":"https://api.github.com/repos/getkirby/kirby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getkirby/kirby/downloads","issues_url":"https://api.github.com/repos/getkirby/kirby/issues{/number}","pulls_url":"https://api.github.com/repos/getkirby/kirby/pulls{/number}","milestones_url":"https://api.github.com/repos/getkirby/kirby/milestones{/number}","notifications_url":"https://api.github.com/repos/getkirby/kirby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getkirby/kirby/labels{/name}","releases_url":"https://api.github.com/repos/getkirby/kirby/releases{/id}","created_at":"2014-03-18T09:57:09Z","updated_at":"2015-08-17T19:42:24Z","pushed_at":"2015-08-15T15:43:18Z","git_url":"git://github.com/getkirby/kirby.git","ssh_url":"git@github.com:getkirby/kirby.git","clone_url":"https://github.com/getkirby/kirby.git","svn_url":"https://github.com/getkirby/kirby","homepage":"http://getkirby.com","size":1868,"stargazers_count":191,"watchers_count":191,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":70,"forks":51,"open_issues":70,"watchers":191,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getkirby/kirby/pulls/294"},"html":{"href":"https://github.com/getkirby/kirby/pull/294"},"issue":{"href":"https://api.github.com/repos/getkirby/kirby/issues/294"},"comments":{"href":"https://api.github.com/repos/getkirby/kirby/issues/294/comments"},"review_comments":{"href":"https://api.github.com/repos/getkirby/kirby/pulls/294/comments"},"review_comment":{"href":"https://api.github.com/repos/getkirby/kirby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getkirby/kirby/pulls/294/commits"},"statuses":{"href":"https://api.github.com/repos/getkirby/kirby/statuses/cb137feb56034efdc2d4f965504455e1392c9f4e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":11,"deletions":0,"changed_files":1}}