func (r *Request) Write(w io.Writer) error...
If Body is present, Content-Length is <= 0 and TransferEncoding
hasn't been set to "identity", Write adds "Transfer-Encoding:
chunked" to the header. Body is closed after it is sent.
I've tried setting ContentLength to 0 as well but it that case the body is not set at all (which is not what I understand the documentation is saying).
I've tried forcing TransferEncoding to chunked in the request object but the result was the same.
I dug into the net/http package source code and it really looks like this should be working so I'm not sure what's wrong here.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.