{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls/5","id":168800634,"node_id":"MDExOlB1bGxSZXF1ZXN0MTY4ODAwNjM0","html_url":"https://github.com/Tucker-Eric/laravel-xml-middleware/pull/5","diff_url":"https://github.com/Tucker-Eric/laravel-xml-middleware/pull/5.diff","patch_url":"https://github.com/Tucker-Eric/laravel-xml-middleware/pull/5.patch","issue_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/issues/5","number":5,"state":"closed","locked":false,"title":"Empty request no longer trigger fatal error.","user":{"login":"Loic-Rameau","id":4662499,"node_id":"MDQ6VXNlcjQ2NjI0OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/4662499?v=4","gravatar_id":"","url":"https://api.github.com/users/Loic-Rameau","html_url":"https://github.com/Loic-Rameau","followers_url":"https://api.github.com/users/Loic-Rameau/followers","following_url":"https://api.github.com/users/Loic-Rameau/following{/other_user}","gists_url":"https://api.github.com/users/Loic-Rameau/gists{/gist_id}","starred_url":"https://api.github.com/users/Loic-Rameau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Loic-Rameau/subscriptions","organizations_url":"https://api.github.com/users/Loic-Rameau/orgs","repos_url":"https://api.github.com/users/Loic-Rameau/repos","events_url":"https://api.github.com/users/Loic-Rameau/events{/privacy}","received_events_url":"https://api.github.com/users/Loic-Rameau/received_events","type":"User","site_admin":false},"body":"The middleware trigger a fatal error if the request body is empty, i came accros the problem so i came to share the resolution.","created_at":"2018-02-13T10:04:08Z","updated_at":"2018-06-28T05:11:04Z","closed_at":"2018-06-28T05:11:04Z","merged_at":null,"merge_commit_sha":"f37315d99ece74177f1ebda16a102a3d3f23317e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/issues/5/comments","statuses_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/statuses/29b52d32c82dbc958a567b79fb697c86c65ad9fa","head":{"label":"Loic-Rameau:master","ref":"master","sha":"29b52d32c82dbc958a567b79fb697c86c65ad9fa","user":{"login":"Loic-Rameau","id":4662499,"node_id":"MDQ6VXNlcjQ2NjI0OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/4662499?v=4","gravatar_id":"","url":"https://api.github.com/users/Loic-Rameau","html_url":"https://github.com/Loic-Rameau","followers_url":"https://api.github.com/users/Loic-Rameau/followers","following_url":"https://api.github.com/users/Loic-Rameau/following{/other_user}","gists_url":"https://api.github.com/users/Loic-Rameau/gists{/gist_id}","starred_url":"https://api.github.com/users/Loic-Rameau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Loic-Rameau/subscriptions","organizations_url":"https://api.github.com/users/Loic-Rameau/orgs","repos_url":"https://api.github.com/users/Loic-Rameau/repos","events_url":"https://api.github.com/users/Loic-Rameau/events{/privacy}","received_events_url":"https://api.github.com/users/Loic-Rameau/received_events","type":"User","site_admin":false},"repo":{"id":121366010,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEzNjYwMTA=","name":"laravel-xml-middleware","full_name":"Loic-Rameau/laravel-xml-middleware","owner":{"login":"Loic-Rameau","id":4662499,"node_id":"MDQ6VXNlcjQ2NjI0OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/4662499?v=4","gravatar_id":"","url":"https://api.github.com/users/Loic-Rameau","html_url":"https://github.com/Loic-Rameau","followers_url":"https://api.github.com/users/Loic-Rameau/followers","following_url":"https://api.github.com/users/Loic-Rameau/following{/other_user}","gists_url":"https://api.github.com/users/Loic-Rameau/gists{/gist_id}","starred_url":"https://api.github.com/users/Loic-Rameau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Loic-Rameau/subscriptions","organizations_url":"https://api.github.com/users/Loic-Rameau/orgs","repos_url":"https://api.github.com/users/Loic-Rameau/repos","events_url":"https://api.github.com/users/Loic-Rameau/events{/privacy}","received_events_url":"https://api.github.com/users/Loic-Rameau/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Loic-Rameau/laravel-xml-middleware","description":"A Laravel Middleware to accept XML requests","fork":true,"url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware","forks_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/forks","keys_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/teams","hooks_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/hooks","issue_events_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/issues/events{/number}","events_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/events","assignees_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/assignees{/user}","branches_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/branches{/branch}","tags_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/tags","blobs_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/git/refs{/sha}","trees_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/statuses/{sha}","languages_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/languages","stargazers_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/stargazers","contributors_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/contributors","subscribers_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/subscribers","subscription_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/subscription","commits_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/commits{/sha}","git_commits_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/git/commits{/sha}","comments_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/comments{/number}","issue_comment_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/issues/comments{/number}","contents_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/contents/{+path}","compare_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/merges","archive_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/downloads","issues_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/issues{/number}","pulls_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/pulls{/number}","milestones_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/milestones{/number}","notifications_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/labels{/name}","releases_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/releases{/id}","deployments_url":"https://api.github.com/repos/Loic-Rameau/laravel-xml-middleware/deployments","created_at":"2018-02-13T09:57:54Z","updated_at":"2018-02-13T09:57:56Z","pushed_at":"2018-02-13T10:00:58Z","git_url":"git://github.com/Loic-Rameau/laravel-xml-middleware.git","ssh_url":"git@github.com:Loic-Rameau/laravel-xml-middleware.git","clone_url":"https://github.com/Loic-Rameau/laravel-xml-middleware.git","svn_url":"https://github.com/Loic-Rameau/laravel-xml-middleware","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Tucker-Eric:master","ref":"master","sha":"054e67ca33b9a7096bc182fd49baf06d3e94f1f5","user":{"login":"Tucker-Eric","id":6483755,"node_id":"MDQ6VXNlcjY0ODM3NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/6483755?v=4","gravatar_id":"","url":"https://api.github.com/users/Tucker-Eric","html_url":"https://github.com/Tucker-Eric","followers_url":"https://api.github.com/users/Tucker-Eric/followers","following_url":"https://api.github.com/users/Tucker-Eric/following{/other_user}","gists_url":"https://api.github.com/users/Tucker-Eric/gists{/gist_id}","starred_url":"https://api.github.com/users/Tucker-Eric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tucker-Eric/subscriptions","organizations_url":"https://api.github.com/users/Tucker-Eric/orgs","repos_url":"https://api.github.com/users/Tucker-Eric/repos","events_url":"https://api.github.com/users/Tucker-Eric/events{/privacy}","received_events_url":"https://api.github.com/users/Tucker-Eric/received_events","type":"User","site_admin":false},"repo":{"id":75261775,"node_id":"MDEwOlJlcG9zaXRvcnk3NTI2MTc3NQ==","name":"laravel-xml-middleware","full_name":"Tucker-Eric/laravel-xml-middleware","owner":{"login":"Tucker-Eric","id":6483755,"node_id":"MDQ6VXNlcjY0ODM3NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/6483755?v=4","gravatar_id":"","url":"https://api.github.com/users/Tucker-Eric","html_url":"https://github.com/Tucker-Eric","followers_url":"https://api.github.com/users/Tucker-Eric/followers","following_url":"https://api.github.com/users/Tucker-Eric/following{/other_user}","gists_url":"https://api.github.com/users/Tucker-Eric/gists{/gist_id}","starred_url":"https://api.github.com/users/Tucker-Eric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tucker-Eric/subscriptions","organizations_url":"https://api.github.com/users/Tucker-Eric/orgs","repos_url":"https://api.github.com/users/Tucker-Eric/repos","events_url":"https://api.github.com/users/Tucker-Eric/events{/privacy}","received_events_url":"https://api.github.com/users/Tucker-Eric/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tucker-Eric/laravel-xml-middleware","description":"A Laravel Middleware to accept XML requests","fork":false,"url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware","forks_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/forks","keys_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/teams","hooks_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/hooks","issue_events_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/issues/events{/number}","events_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/events","assignees_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/assignees{/user}","branches_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/branches{/branch}","tags_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/tags","blobs_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/statuses/{sha}","languages_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/languages","stargazers_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/stargazers","contributors_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/contributors","subscribers_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/subscribers","subscription_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/subscription","commits_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/contents/{+path}","compare_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/merges","archive_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/downloads","issues_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/issues{/number}","pulls_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls{/number}","milestones_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/milestones{/number}","notifications_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/labels{/name}","releases_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/releases{/id}","deployments_url":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/deployments","created_at":"2016-12-01T06:17:49Z","updated_at":"2018-06-28T05:09:39Z","pushed_at":"2018-06-28T05:09:38Z","git_url":"git://github.com/Tucker-Eric/laravel-xml-middleware.git","ssh_url":"git@github.com:Tucker-Eric/laravel-xml-middleware.git","clone_url":"https://github.com/Tucker-Eric/laravel-xml-middleware.git","svn_url":"https://github.com/Tucker-Eric/laravel-xml-middleware","homepage":null,"size":5,"stargazers_count":10,"watchers_count":10,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":6,"open_issues":0,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls/5"},"html":{"href":"https://github.com/Tucker-Eric/laravel-xml-middleware/pull/5"},"issue":{"href":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/issues/5"},"comments":{"href":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Tucker-Eric/laravel-xml-middleware/statuses/29b52d32c82dbc958a567b79fb697c86c65ad9fa"}},"author_association":"NONE","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":10,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"Tucker-Eric"}}