{"action":"created","issue":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/272","repository_url":"https://api.github.com/repos/go-swagger/go-swagger","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/272/comments","events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/272/events","html_url":"https://github.com/go-swagger/go-swagger/pull/272","id":132577719,"number":272,"title":"Bugfix for POST Ops not setting Content Length","user":{"login":"akutz","id":101085,"avatar_url":"https://avatars.githubusercontent.com/u/101085?v=3","gravatar_id":"","url":"https://api.github.com/users/akutz","html_url":"https://github.com/akutz","followers_url":"https://api.github.com/users/akutz/followers","following_url":"https://api.github.com/users/akutz/following{/other_user}","gists_url":"https://api.github.com/users/akutz/gists{/gist_id}","starred_url":"https://api.github.com/users/akutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akutz/subscriptions","organizations_url":"https://api.github.com/users/akutz/orgs","repos_url":"https://api.github.com/users/akutz/repos","events_url":"https://api.github.com/users/akutz/events{/privacy}","received_events_url":"https://api.github.com/users/akutz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-10T00:34:39Z","updated_at":"2016-02-10T05:20:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/go-swagger/go-swagger/pulls/272","html_url":"https://github.com/go-swagger/go-swagger/pull/272","diff_url":"https://github.com/go-swagger/go-swagger/pull/272.diff","patch_url":"https://github.com/go-swagger/go-swagger/pull/272.patch"},"body":"This patch sets the content length of the request or else a chunked transfer is declared, and this corrupts outgoing payloads. the content's length must be set prior to the body being written per the spec at https://golang.org/pkg/net/http\r\n\r\n     If Body is present, Content-Length is <= 0 and\r\n     TransferEncoding hasn't been set to \"identity\", Write\r\n     adds \"Transfer-Encoding: chunked\" to the header. Body\r\n     is closed after it is sent.\r\n\r\nTo that end a temporary buffer, b, is created to produce the payload body, and then its size is used to set the request's content length."},"comment":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/comments/182203720","html_url":"https://github.com/go-swagger/go-swagger/pull/272#issuecomment-182203720","issue_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/272","id":182203720,"user":{"login":"casualjim","id":456109,"avatar_url":"https://avatars.githubusercontent.com/u/456109?v=3","gravatar_id":"","url":"https://api.github.com/users/casualjim","html_url":"https://github.com/casualjim","followers_url":"https://api.github.com/users/casualjim/followers","following_url":"https://api.github.com/users/casualjim/following{/other_user}","gists_url":"https://api.github.com/users/casualjim/gists{/gist_id}","starred_url":"https://api.github.com/users/casualjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualjim/subscriptions","organizations_url":"https://api.github.com/users/casualjim/orgs","repos_url":"https://api.github.com/users/casualjim/repos","events_url":"https://api.github.com/users/casualjim/events{/privacy}","received_events_url":"https://api.github.com/users/casualjim/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T05:20:33Z","updated_at":"2016-02-10T05:20:33Z","body":"lgtm"}}