{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/httpbin/issues/340","repository_url":"https://api.github.com/repos/kennethreitz/httpbin","labels_url":"https://api.github.com/repos/kennethreitz/httpbin/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/httpbin/issues/340/comments","events_url":"https://api.github.com/repos/kennethreitz/httpbin/issues/340/events","html_url":"https://github.com/kennethreitz/httpbin/issues/340","id":215489442,"number":340,"title":"Regression with chunked transfer encoding?","user":{"login":"pb-","id":84886,"avatar_url":"https://avatars2.githubusercontent.com/u/84886?v=4","gravatar_id":"","url":"https://api.github.com/users/pb-","html_url":"https://github.com/pb-","followers_url":"https://api.github.com/users/pb-/followers","following_url":"https://api.github.com/users/pb-/following{/other_user}","gists_url":"https://api.github.com/users/pb-/gists{/gist_id}","starred_url":"https://api.github.com/users/pb-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pb-/subscriptions","organizations_url":"https://api.github.com/users/pb-/orgs","repos_url":"https://api.github.com/users/pb-/repos","events_url":"https://api.github.com/users/pb-/events{/privacy}","received_events_url":"https://api.github.com/users/pb-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":54,"created_at":"2017-03-20T17:06:31Z","updated_at":"2018-02-21T10:59:18Z","closed_at":"2017-12-18T16:08:20Z","author_association":"NONE","body":"I'm using https://httpbin.org and it looks like chunked transfer encoding does not work any more as expected:\r\n\r\n```\r\n$ curl -X POST https://httpbin.org/post \\\r\n -d '{\"message\":\"BLA\"}' \\\r\n -H 'Content-Type: application/json' \\\r\n -H 'Transfer-Encoding: chunked'\r\n{\r\n  \"args\": {}, \r\n  \"data\": \"\", \r\n  \"files\": {}, \r\n  \"form\": {}, \r\n  \"headers\": {\r\n    \"Accept\": \"*/*\", \r\n    \"Connect-Time\": \"1\", \r\n    \"Connection\": \"close\", \r\n    \"Content-Type\": \"application/json\", \r\n    \"Host\": \"httpbin.org\", \r\n    \"Total-Route-Time\": \"0\", \r\n    \"Transfer-Encoding\": \"chunked\", \r\n    \"User-Agent\": \"curl/7.50.1\", \r\n    \"Via\": \"1.1 vegur\", \r\n    \"X-Request-Id\": \"2a06bd5b-06dc-4ced-ac89-fe83cbb6771c\"\r\n  }, \r\n  \"json\": null, \r\n  \"origin\": \"<removed>\", \r\n  \"url\": \"https://httpbin.org/post\"\r\n}\r\n```\r\n\r\nObserve that `data` and `json` do not contain the posted data. The same request works as expected without chunked transfer encoding:\r\n\r\n```\r\n$ curl -X POST https://httpbin.org/post \\\r\n -d '{\"message\":\"BLA\"}' \\\r\n -H 'Content-Type: application/json'\r\n{\r\n  \"args\": {}, \r\n  \"data\": \"{\\\"message\\\":\\\"BLA\\\"}\", \r\n  \"files\": {}, \r\n  \"form\": {}, \r\n  \"headers\": {\r\n    \"Accept\": \"*/*\", \r\n    \"Connect-Time\": \"0\", \r\n    \"Connection\": \"close\", \r\n    \"Content-Length\": \"17\", \r\n    \"Content-Type\": \"application/json\", \r\n    \"Host\": \"httpbin.org\", \r\n    \"Total-Route-Time\": \"0\", \r\n    \"User-Agent\": \"curl/7.50.1\", \r\n    \"Via\": \"1.1 vegur\", \r\n    \"X-Request-Id\": \"dfbaa440-9871-4a3c-b482-35a68459722a\"\r\n  }, \r\n  \"json\": {\r\n    \"message\": \"BLA\"\r\n  }, \r\n  \"origin\": \"<removed>\", \r\n  \"url\": \"https://httpbin.org/post\"\r\n}\r\n```\r\n\r\nAm I missing something?"},"comment":{"url":"https://api.github.com/repos/kennethreitz/httpbin/issues/comments/367290387","html_url":"https://github.com/kennethreitz/httpbin/issues/340#issuecomment-367290387","issue_url":"https://api.github.com/repos/kennethreitz/httpbin/issues/340","id":367290387,"user":{"login":"javabrett","id":1103477,"avatar_url":"https://avatars1.githubusercontent.com/u/1103477?v=4","gravatar_id":"","url":"https://api.github.com/users/javabrett","html_url":"https://github.com/javabrett","followers_url":"https://api.github.com/users/javabrett/followers","following_url":"https://api.github.com/users/javabrett/following{/other_user}","gists_url":"https://api.github.com/users/javabrett/gists{/gist_id}","starred_url":"https://api.github.com/users/javabrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javabrett/subscriptions","organizations_url":"https://api.github.com/users/javabrett/orgs","repos_url":"https://api.github.com/users/javabrett/repos","events_url":"https://api.github.com/users/javabrett/events{/privacy}","received_events_url":"https://api.github.com/users/javabrett/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T10:59:18Z","updated_at":"2018-02-21T10:59:18Z","author_association":"CONTRIBUTOR","body":"My code-change to meinheld was merged, so when it is next-released it will no-longer generate the 411 error-response when `Transfer-Encoding: chunked` and missing or zero `Content-Length`, which is as it should be.  I don't think there's nightly builds other than on Travis."}}
{"actor":{"display_login":"javabrett"}}