Descriptionnet/http: in Client, consume small redirect bodies before making next request
In Go 1.2, closing a request body without reading to EOF
causes the underlying TCP connection to not be reused. This
client code following redirects was never updated when that
happened.
This was part of a previous CL but moved to its own CL at
Josh's request. Now with test too.
Patch Set 1 #Patch Set 2 : diff -r bc595acf7db4 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r bc595acf7db4 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 7611e98a94c8 https://go.googlecode.com/hg/ #
MessagesTotal messages: 4
|