Ok thanks got it but even if I change "Hello" to "Hello\n" the connection stays opened ... Shouldn't it be closed once the handler returns ?
Ok thanks got it but even if I change "Hello" to "Hello\n" the connection stays opened ... Shouldn't it be closed once the handler returns ?
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2f3fe522-80ce-4528-889e-aced81b7c443%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Make sure you're checking for errs:
http://golang.org/pkg/net/http/#pkg-variables
> ErrUnexpectedTrailer = &ProtocolError{"trailer header without chunked transfer encoding"}
You cannot use trailers unless HTTP/1.1 and chunked encoding.
Apart from that suggestion, my magic ball came up with nothing (show your code).
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6dcbfba9-445f-40d6-afc2-4de0ec78d7cd%40googlegroups.com.
// Trailer maps trailer keys to values. Like for Header, if the // response has multiple trailer lines with the same key, they will be // concatenated, delimited by commas. // For server requests, Trailer is only populated after Body has been // closed or fully consumed. // Trailer support is only partially complete. Trailer Header
I'm pretty sure I remember Brad saying that trailers are not supported.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/A49C36A6-5EDF-4830-85E1-430C1E463EDC%40cheney.net.