{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/stash/Feersum/pulls/20","id":42196008,"html_url":"https://github.com/stash/Feersum/pull/20","diff_url":"https://github.com/stash/Feersum/pull/20.diff","patch_url":"https://github.com/stash/Feersum/pull/20.patch","issue_url":"https://api.github.com/repos/stash/Feersum/issues/20","number":20,"state":"closed","locked":false,"title":"Add support for `OPTIONS` http method","user":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"body":"Not sure why support for this was not yet added ... the changes seem trivial.\r\nI needed it to enable correct cors headers for the OPTIONS request from UA.\r\n\r\nJust to be complete, here to part from the psgi application:\r\n```perl\r\nmy @allowed_headers = ('X-NAMESPACE-OPTION-1', ...);\r\nmy @allowed_methods = ('OPTIONS', 'POST', 'GET', 'HEAD');\r\nif ($request->method eq 'OPTIONS') {\r\n\treturn [\r\n\t\t'200',\r\n\t\t[\r\n\t\t\t'Allow' => join(\", \", @allowed_methods),\r\n\t\t\t'Access-Control-Allow-Origin' => '*',\r\n\t\t\t'Access-Control-Allow-Headers' => join(\", \", @allowed_headers),\r\n\t\t\t'Access-Control-Allow-Methods' => join(\", \", @allowed_methods),\r\n\t\t],\r\n\t\t[]\r\n\t];\r\n}\r\n``` \r\n\r\nBest regards\r\nMarcel Greter","created_at":"2015-08-12T01:18:35Z","updated_at":"2015-08-12T11:17:09Z","closed_at":"2015-08-12T11:17:09Z","merged_at":"2015-08-12T11:17:09Z","merge_commit_sha":"c3f4be98a3154ca93f0623f0e52950c8c91ca478","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stash/Feersum/pulls/20/commits","review_comments_url":"https://api.github.com/repos/stash/Feersum/pulls/20/comments","review_comment_url":"https://api.github.com/repos/stash/Feersum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stash/Feersum/issues/20/comments","statuses_url":"https://api.github.com/repos/stash/Feersum/statuses/f85835e555d19e941fdd461b9d0b277b569218c5","head":{"label":"mgreter:master","ref":"master","sha":"f85835e555d19e941fdd461b9d0b277b569218c5","user":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"repo":{"id":40572697,"name":"Feersum","full_name":"mgreter/Feersum","owner":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mgreter/Feersum","description":"A PSGI engine for Perl based on EV/libev","fork":true,"url":"https://api.github.com/repos/mgreter/Feersum","forks_url":"https://api.github.com/repos/mgreter/Feersum/forks","keys_url":"https://api.github.com/repos/mgreter/Feersum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mgreter/Feersum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mgreter/Feersum/teams","hooks_url":"https://api.github.com/repos/mgreter/Feersum/hooks","issue_events_url":"https://api.github.com/repos/mgreter/Feersum/issues/events{/number}","events_url":"https://api.github.com/repos/mgreter/Feersum/events","assignees_url":"https://api.github.com/repos/mgreter/Feersum/assignees{/user}","branches_url":"https://api.github.com/repos/mgreter/Feersum/branches{/branch}","tags_url":"https://api.github.com/repos/mgreter/Feersum/tags","blobs_url":"https://api.github.com/repos/mgreter/Feersum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mgreter/Feersum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mgreter/Feersum/git/refs{/sha}","trees_url":"https://api.github.com/repos/mgreter/Feersum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mgreter/Feersum/statuses/{sha}","languages_url":"https://api.github.com/repos/mgreter/Feersum/languages","stargazers_url":"https://api.github.com/repos/mgreter/Feersum/stargazers","contributors_url":"https://api.github.com/repos/mgreter/Feersum/contributors","subscribers_url":"https://api.github.com/repos/mgreter/Feersum/subscribers","subscription_url":"https://api.github.com/repos/mgreter/Feersum/subscription","commits_url":"https://api.github.com/repos/mgreter/Feersum/commits{/sha}","git_commits_url":"https://api.github.com/repos/mgreter/Feersum/git/commits{/sha}","comments_url":"https://api.github.com/repos/mgreter/Feersum/comments{/number}","issue_comment_url":"https://api.github.com/repos/mgreter/Feersum/issues/comments{/number}","contents_url":"https://api.github.com/repos/mgreter/Feersum/contents/{+path}","compare_url":"https://api.github.com/repos/mgreter/Feersum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mgreter/Feersum/merges","archive_url":"https://api.github.com/repos/mgreter/Feersum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mgreter/Feersum/downloads","issues_url":"https://api.github.com/repos/mgreter/Feersum/issues{/number}","pulls_url":"https://api.github.com/repos/mgreter/Feersum/pulls{/number}","milestones_url":"https://api.github.com/repos/mgreter/Feersum/milestones{/number}","notifications_url":"https://api.github.com/repos/mgreter/Feersum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mgreter/Feersum/labels{/name}","releases_url":"https://api.github.com/repos/mgreter/Feersum/releases{/id}","created_at":"2015-08-12T01:04:12Z","updated_at":"2015-08-12T01:04:13Z","pushed_at":"2015-08-12T01:08:00Z","git_url":"git://github.com/mgreter/Feersum.git","ssh_url":"git@github.com:mgreter/Feersum.git","clone_url":"https://github.com/mgreter/Feersum.git","svn_url":"https://github.com/mgreter/Feersum","homepage":"http://search.cpan.org/~stash/Feersum/","size":520,"stargazers_count":0,"watchers_count":0,"language":"C","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":"stash:master","ref":"master","sha":"a93a8ff6c88a06318587f2c686695f0af99adfb9","user":{"login":"stash","id":37922,"avatar_url":"https://avatars.githubusercontent.com/u/37922?v=3","gravatar_id":"","url":"https://api.github.com/users/stash","html_url":"https://github.com/stash","followers_url":"https://api.github.com/users/stash/followers","following_url":"https://api.github.com/users/stash/following{/other_user}","gists_url":"https://api.github.com/users/stash/gists{/gist_id}","starred_url":"https://api.github.com/users/stash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stash/subscriptions","organizations_url":"https://api.github.com/users/stash/orgs","repos_url":"https://api.github.com/users/stash/repos","events_url":"https://api.github.com/users/stash/events{/privacy}","received_events_url":"https://api.github.com/users/stash/received_events","type":"User","site_admin":false},"repo":{"id":649783,"name":"Feersum","full_name":"stash/Feersum","owner":{"login":"stash","id":37922,"avatar_url":"https://avatars.githubusercontent.com/u/37922?v=3","gravatar_id":"","url":"https://api.github.com/users/stash","html_url":"https://github.com/stash","followers_url":"https://api.github.com/users/stash/followers","following_url":"https://api.github.com/users/stash/following{/other_user}","gists_url":"https://api.github.com/users/stash/gists{/gist_id}","starred_url":"https://api.github.com/users/stash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stash/subscriptions","organizations_url":"https://api.github.com/users/stash/orgs","repos_url":"https://api.github.com/users/stash/repos","events_url":"https://api.github.com/users/stash/events{/privacy}","received_events_url":"https://api.github.com/users/stash/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stash/Feersum","description":"A PSGI engine for Perl based on EV/libev","fork":false,"url":"https://api.github.com/repos/stash/Feersum","forks_url":"https://api.github.com/repos/stash/Feersum/forks","keys_url":"https://api.github.com/repos/stash/Feersum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stash/Feersum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stash/Feersum/teams","hooks_url":"https://api.github.com/repos/stash/Feersum/hooks","issue_events_url":"https://api.github.com/repos/stash/Feersum/issues/events{/number}","events_url":"https://api.github.com/repos/stash/Feersum/events","assignees_url":"https://api.github.com/repos/stash/Feersum/assignees{/user}","branches_url":"https://api.github.com/repos/stash/Feersum/branches{/branch}","tags_url":"https://api.github.com/repos/stash/Feersum/tags","blobs_url":"https://api.github.com/repos/stash/Feersum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stash/Feersum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stash/Feersum/git/refs{/sha}","trees_url":"https://api.github.com/repos/stash/Feersum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stash/Feersum/statuses/{sha}","languages_url":"https://api.github.com/repos/stash/Feersum/languages","stargazers_url":"https://api.github.com/repos/stash/Feersum/stargazers","contributors_url":"https://api.github.com/repos/stash/Feersum/contributors","subscribers_url":"https://api.github.com/repos/stash/Feersum/subscribers","subscription_url":"https://api.github.com/repos/stash/Feersum/subscription","commits_url":"https://api.github.com/repos/stash/Feersum/commits{/sha}","git_commits_url":"https://api.github.com/repos/stash/Feersum/git/commits{/sha}","comments_url":"https://api.github.com/repos/stash/Feersum/comments{/number}","issue_comment_url":"https://api.github.com/repos/stash/Feersum/issues/comments{/number}","contents_url":"https://api.github.com/repos/stash/Feersum/contents/{+path}","compare_url":"https://api.github.com/repos/stash/Feersum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stash/Feersum/merges","archive_url":"https://api.github.com/repos/stash/Feersum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stash/Feersum/downloads","issues_url":"https://api.github.com/repos/stash/Feersum/issues{/number}","pulls_url":"https://api.github.com/repos/stash/Feersum/pulls{/number}","milestones_url":"https://api.github.com/repos/stash/Feersum/milestones{/number}","notifications_url":"https://api.github.com/repos/stash/Feersum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stash/Feersum/labels{/name}","releases_url":"https://api.github.com/repos/stash/Feersum/releases{/id}","created_at":"2010-05-06T05:55:35Z","updated_at":"2015-07-09T09:08:40Z","pushed_at":"2015-08-12T11:17:09Z","git_url":"git://github.com/stash/Feersum.git","ssh_url":"git@github.com:stash/Feersum.git","clone_url":"https://github.com/stash/Feersum.git","svn_url":"https://github.com/stash/Feersum","homepage":"http://search.cpan.org/~stash/Feersum/","size":542,"stargazers_count":62,"watchers_count":62,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stash/Feersum/pulls/20"},"html":{"href":"https://github.com/stash/Feersum/pull/20"},"issue":{"href":"https://api.github.com/repos/stash/Feersum/issues/20"},"comments":{"href":"https://api.github.com/repos/stash/Feersum/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/stash/Feersum/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/stash/Feersum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stash/Feersum/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/stash/Feersum/statuses/f85835e555d19e941fdd461b9d0b277b569218c5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"audreyt","id":20723,"avatar_url":"https://avatars.githubusercontent.com/u/20723?v=3","gravatar_id":"","url":"https://api.github.com/users/audreyt","html_url":"https://github.com/audreyt","followers_url":"https://api.github.com/users/audreyt/followers","following_url":"https://api.github.com/users/audreyt/following{/other_user}","gists_url":"https://api.github.com/users/audreyt/gists{/gist_id}","starred_url":"https://api.github.com/users/audreyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audreyt/subscriptions","organizations_url":"https://api.github.com/users/audreyt/orgs","repos_url":"https://api.github.com/users/audreyt/repos","events_url":"https://api.github.com/users/audreyt/events{/privacy}","received_events_url":"https://api.github.com/users/audreyt/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":22,"deletions":18,"changed_files":1}}