tiaguinho / gosoap

🦉SOAP package for Go
MIT License
507 stars 176 forks source link

Control the Accept header #89

Open gbonnefille opened 1 year ago

gbonnefille commented 1 year ago

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.