gosoap
gosoap copied to clipboard
Control the Accept header
I'm using an old, probably misconfigured, SOAP service running on PHP.
Currently, the call fails due to a 406 error. I identified (reproducing with curl) that the problem is the Accept header.
When defaulted to "/" by curl, it works. But gosoap enforces it to "text/xml" and in this case it fails.
Is it possible to evolve gosoap to offer a control over this header? I can do the change and propose a PR if you agree.