Hello,
I am having some issue marshaling and unmarshalling a HTTPClientConfig struct to JSON.
The problem is about the ProxyURL field. When there are no ProxyURL configured,it gets marshaled to "proxy_url":null, and then it gets unmarshaled to an empty string.
Contrary to a null pointer, an empty string will be handled by the http package like a valid Proxy. resulting in some connection error.
I first thought that it was some kind of bug, but then looking at the tests, this looks like an intended feature:
This is why I am confused here, is it a bug, or is there some kind of trick that I am missing?
Thanks,