{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/19257","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/19257/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/19257/comments","events_url":"https://api.github.com/repos/golang/go/issues/19257/events","html_url":"https://github.com/golang/go/issues/19257","id":209755982,"number":19257,"title":"why dose go add \"transfer-encoding chunked\" header in a \"PUT\" request when i set the\"Content-Length\" header?","user":{"login":"chidaren","id":12998285,"avatar_url":"https://avatars.githubusercontent.com/u/12998285?v=3","gravatar_id":"","url":"https://api.github.com/users/chidaren","html_url":"https://github.com/chidaren","followers_url":"https://api.github.com/users/chidaren/followers","following_url":"https://api.github.com/users/chidaren/following{/other_user}","gists_url":"https://api.github.com/users/chidaren/gists{/gist_id}","starred_url":"https://api.github.com/users/chidaren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chidaren/subscriptions","organizations_url":"https://api.github.com/users/chidaren/orgs","repos_url":"https://api.github.com/users/chidaren/repos","events_url":"https://api.github.com/users/chidaren/events{/privacy}","received_events_url":"https://api.github.com/users/chidaren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-23T13:06:15Z","updated_at":"2017-02-23T13:06:15Z","closed_at":null,"body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n### What version of Go are you using (`go version`)?\r\n1.71\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\nCentos 6.7 32bit\r\n\r\n### What did you do?\r\n\r\nIf possible, provide a recipe for reproducing the error.\r\nA complete runnable program is good.\r\nA link on play.golang.org is best.\r\n\r\n\r\n### What did you expect to see?\r\nwhen i create a http client using: \"client := &http.Client{}\", and i execute \"client.Do(req)\" and the \"req\" is a http.Request ,it has \"put\" method,and req.body is a io.Reader, and i set the \"Content-Length\" header.\r\n\r\nbut when i caputre this request using tcpdump,i found the request has “transfer-encoding: chunked” header, has not  the \"Content-Length\" header . So how can i make it does't use \"transfer-encoding: chunked\"  header, and use \"Content-Length\" header.\r\n\r\nThere are  all my questions, and thank you!\r\n\r\n\r\n### What did you see instead?\r\n\r\n\r\n"}}
{"actor":{"display_login":"chidaren"}}