I am trying to set all-lowercase headers in a golang program and CanonicalMIMEHeaderKey is uppercasing the first letter. The API I am consuming only takes this particular header in all-lowercase at the moment. It's not an option to change that at this point in time. Is there a way to override that?
http://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
So for example, the header I want to add is:
req.Header.Add("myheader", "myheadervalue")
But it comes out as:
req.Header.Add("Myheader", "myheadervalue")
Can anyone help please?
Thanks