{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/vert.x/issues/2607","repository_url":"https://api.github.com/repos/eclipse/vert.x","labels_url":"https://api.github.com/repos/eclipse/vert.x/issues/2607/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/vert.x/issues/2607/comments","events_url":"https://api.github.com/repos/eclipse/vert.x/issues/2607/events","html_url":"https://github.com/eclipse/vert.x/issues/2607","id":356043397,"node_id":"MDU6SXNzdWUzNTYwNDMzOTc=","number":2607,"title":"Extra chunk for request with no content.","user":{"login":"FroMage","id":179265,"node_id":"MDQ6VXNlcjE3OTI2NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/179265?v=4","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"labels":[{"id":754172373,"node_id":"MDU6TGFiZWw3NTQxNzIzNzM=","url":"https://api.github.com/repos/eclipse/vert.x/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/eclipse/vert.x/milestones/48","html_url":"https://github.com/eclipse/vert.x/milestone/48","labels_url":"https://api.github.com/repos/eclipse/vert.x/milestones/48/labels","id":3101997,"node_id":"MDk6TWlsZXN0b25lMzEwMTk5Nw==","number":48,"title":"3.6.0","description":null,"creator":{"login":"vietj","id":225674,"node_id":"MDQ6VXNlcjIyNTY3NA==","avatar_url":"https://avatars2.githubusercontent.com/u/225674?v=4","gravatar_id":"","url":"https://api.github.com/users/vietj","html_url":"https://github.com/vietj","followers_url":"https://api.github.com/users/vietj/followers","following_url":"https://api.github.com/users/vietj/following{/other_user}","gists_url":"https://api.github.com/users/vietj/gists{/gist_id}","starred_url":"https://api.github.com/users/vietj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietj/subscriptions","organizations_url":"https://api.github.com/users/vietj/orgs","repos_url":"https://api.github.com/users/vietj/repos","events_url":"https://api.github.com/users/vietj/events{/privacy}","received_events_url":"https://api.github.com/users/vietj/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":86,"state":"open","created_at":"2018-02-09T07:15:30Z","updated_at":"2018-08-31T16:17:53Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-08-31T16:17:08Z","updated_at":"2018-08-31T16:20:27Z","closed_at":null,"author_association":"NONE","body":"The following code produces an extra 0 end trailer chunk that makes HTTP clients parse it as a second invalid response:\r\n\r\n```java\r\n\t\tVertx vertx = Vertx.vertx();\r\n\t\tHttpServer server = vertx.createHttpServer();\r\n\t\tserver.requestStream().toObservable().subscribe(req -> {\r\n\t\t\tSystem.err.println(\"Got request\");\r\n\t\t\treq.response().setChunked(true).setStatusCode(204).end();\r\n\t\t});\r\n\t\tserver.rxListen(9001, \"localhost\").subscribe(s -> System.err.println(\"started\"), Throwable::printStackTrace);\r\n```\r\n\r\nMy guess is that if there is no body, there should not be any trailer end chunk.\r\n\r\nRelated to #1986 (was only for HEAD).\r\n\r\nhttps://tools.ietf.org/html/rfc7231#section-6.3.5 indicates:\r\n\r\n     A 204 response is terminated by the first empty line after the header\r\n     fields because it cannot contain a message body.\r\n\r\nPerhaps there are other HTTP status codes that can't contain a message body?"},"comment":{"url":"https://api.github.com/repos/eclipse/vert.x/issues/comments/417715767","html_url":"https://github.com/eclipse/vert.x/issues/2607#issuecomment-417715767","issue_url":"https://api.github.com/repos/eclipse/vert.x/issues/2607","id":417715767,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzcxNTc2Nw==","user":{"login":"vietj","id":225674,"node_id":"MDQ6VXNlcjIyNTY3NA==","avatar_url":"https://avatars2.githubusercontent.com/u/225674?v=4","gravatar_id":"","url":"https://api.github.com/users/vietj","html_url":"https://github.com/vietj","followers_url":"https://api.github.com/users/vietj/followers","following_url":"https://api.github.com/users/vietj/following{/other_user}","gists_url":"https://api.github.com/users/vietj/gists{/gist_id}","starred_url":"https://api.github.com/users/vietj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietj/subscriptions","organizations_url":"https://api.github.com/users/vietj/orgs","repos_url":"https://api.github.com/users/vietj/repos","events_url":"https://api.github.com/users/vietj/events{/privacy}","received_events_url":"https://api.github.com/users/vietj/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T16:20:27Z","updated_at":"2018-08-31T16:20:27Z","author_association":"CONTRIBUTOR","body":"taht should be easy to fix"}}
{"actor":{"display_login":"vietj"}}