net/http: Transport should return an error when response body ends early
If a server response contains a Content-Length and the body is short, the Transport should end in io.ErrUnexpectedEOF, not io.EOF. Fixes #5738 R=golang-dev, kevlar, r CC=golang-dev https://golang.org/cl/10237050
Showing
Please register or sign in to comment