Descriptionhttp/client: Set Content-Length
The net/http.Request object takes a Reader
so you have to set ContentLength as an attribute
or it will not set in in the POST request.
Fixes bug #1124561.
Oddly enough, we always buffer everything anyway,
(probably to handle retries?). I would have thought
for at least BinaryRequest we would have not
touched the io.Reader that we got.
https://code.launchpad.net/~jameinel/goose/transfer-content-length-1124561/+merge/170976
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 6
Patch Set 2 : http/client: Set Content-Length #Patch Set 3 : http/client: Set Content-Length #Patch Set 4 : http/client: Set Content-Length #
MessagesTotal messages: 8
|