{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/9472","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/9472/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/9472/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/9472/events","html_url":"https://github.com/cakephp/cakephp/issues/9472","id":177587220,"number":9472,"title":"Implement a friendlier ResponseEmitter","user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/http","name":"http","color":"ffffff"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/RFC","name":"RFC","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"assignees":[{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/100","html_url":"https://github.com/cakephp/cakephp/milestones/3.3.4","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/100/labels","id":1981216,"number":100,"title":"3.3.4","description":"Bugfixes and minor features for 3.3.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":65,"state":"open","created_at":"2016-09-03T02:27:21Z","updated_at":"2016-09-24T14:05:50Z","due_on":"2016-09-23T00:00:00Z","closed_at":null},"comments":11,"created_at":"2016-09-17T16:01:16Z","updated_at":"2016-09-24T14:05:50Z","closed_at":"2016-09-24T14:05:50Z","body":"This is a (multiple allowed):\r\n* [ ] bug\r\n* [x] enhancement\r\n* [x] feature-discussion (RFC)\r\n\r\nSince the release of the PSR7 http stack there have been a few issues, and many support requests in the slack/irc channel about awkward issues when people use `debug()`, `var_dump()` or similar functions in their controllers/models. People either see warnings about 'headers sent', or truncated responses (#9435).\r\n\r\nBecause of these issues, I'm proposing we implement our own ResponseEmitter that has the following properties when in debug mode:\r\n\r\n* Sent headers are logged, *and* an error is displayed.\r\n* The Content-Length header is *never* sent, so truncation never occurs.\r\n\r\nWhen in 'production mode' the following would be true:\r\n\r\n* Sent headers are only logged.\r\n* Content-Length header is never sent.\r\n\r\nOnce we have some consensus on these two changes I'll get a new Emitter implemented."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/249366583","html_url":"https://github.com/cakephp/cakephp/issues/9472#issuecomment-249366583","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/9472","id":249366583,"user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T14:05:50Z","updated_at":"2016-09-24T14:05:50Z","body":"Closing as a pull request is open now."}}
{"actor":{"display_login":"markstory"}}