Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: client action when doing redirection #30689
go version 1.11.2.
if uncomment the special line it works as my expection, object will be downloaded continually and data stream could be watched from network card,
if comment the special line, the http.client will also send a request to the redirection url, but no as much as data stream be watched in network card. i doubt that the objects didn't be downloaded.
my question is what's the difference between processing http response with and without 'ioutil.ReadAll(resp.Body)'.
sorry, i update my question. @bradfitz
by the way there is a redirection in http invoke.
so if the returned error is nil, does http.client guarantee that all the requests is sent correctly and all response data is fetched to local even if the reponse data is large?