You should make your own ResponseWriter that removes the header you
want to remove in it's Write() method (so the header is removed before
it's sent by the write call) and pass that down.
I just have to say again that these things are so nice about embedding in Go. Once I got this I started to organize my stuff with this in mind constantly.
--
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.
That worked, and as a bonus I get the Response which has the cookies parsed already.
Hmm, for some reason resp.ContentLength is -1, any idea why? (resp.Header["Content-Length"] is empty). Though I can see that Apache returning this header.
Hmm, for some reason resp.ContentLength is -1, any idea why? (resp.Header["Content-Length"] is empty). Though I can see that Apache returning this header.I it should be there if it was set coming in. Can you verify it was sent on the wire, or that Apache didn't go and use chunked encoding anyway?
Is there a load-balancer between you and the apache server?