{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/11244","labels_url":"https://api.github.com/repos/symfony/symfony/issues/11244/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/11244/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/11244/events","html_url":"https://github.com/symfony/symfony/pull/11244","id":36643607,"number":11244,"title":"[HttpFoundation] Remove body-related headers when sending the response, if body is empty","user":{"login":"SimonSimCity","id":392589,"avatar_url":"https://avatars.githubusercontent.com/u/392589?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonSimCity","html_url":"https://github.com/SimonSimCity","followers_url":"https://api.github.com/users/SimonSimCity/followers","following_url":"https://api.github.com/users/SimonSimCity/following{/other_user}","gists_url":"https://api.github.com/users/SimonSimCity/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonSimCity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonSimCity/subscriptions","organizations_url":"https://api.github.com/users/SimonSimCity/orgs","repos_url":"https://api.github.com/users/SimonSimCity/repos","events_url":"https://api.github.com/users/SimonSimCity/events{/privacy}","received_events_url":"https://api.github.com/users/SimonSimCity/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/HttpFoundation","name":"HttpFoundation","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-06-27T08:05:03Z","updated_at":"2015-04-15T20:26:16Z","closed_at":"2014-07-09T09:05:23Z","pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/11244","html_url":"https://github.com/symfony/symfony/pull/11244","diff_url":"https://github.com/symfony/symfony/pull/11244.diff","patch_url":"https://github.com/symfony/symfony/pull/11244.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | \r\n| License       | MIT\r\n| Doc PR        | \r\n\r\nI've updated the implementation for informational and 204 or 304 responses. They will now, as they have no content, not return headers like `content-type` or `content-length`.\r\n\r\nI'm unsure about `content-length` - we could also set it hardcoded to zero ... but I thought, that (because the specs say that it just can't have a response-body) the system should not return anything here."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/93557261","html_url":"https://github.com/symfony/symfony/pull/11244#issuecomment-93557261","issue_url":"https://api.github.com/repos/symfony/symfony/issues/11244","id":93557261,"user":{"login":"SimonSimCity","id":392589,"avatar_url":"https://avatars.githubusercontent.com/u/392589?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonSimCity","html_url":"https://github.com/SimonSimCity","followers_url":"https://api.github.com/users/SimonSimCity/followers","following_url":"https://api.github.com/users/SimonSimCity/following{/other_user}","gists_url":"https://api.github.com/users/SimonSimCity/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonSimCity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonSimCity/subscriptions","organizations_url":"https://api.github.com/users/SimonSimCity/orgs","repos_url":"https://api.github.com/users/SimonSimCity/repos","events_url":"https://api.github.com/users/SimonSimCity/events{/privacy}","received_events_url":"https://api.github.com/users/SimonSimCity/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T20:26:16Z","updated_at":"2015-04-15T20:26:16Z","body":"Right ... but I had the feeling, that having it removed was a good choice, since there is no content.\r\n\r\nI researched a bit more and found out, that nginx sets `text/plain` as default http://nginx.org/en/docs/http/ngx_http_core_module.html#default_type and Apache had `none` for pretty much time now http://httpd.apache.org/docs/current/mod/core.html#defaulttype"}}