Hi,
I'm having problems precisely because of that.
I need to consume an external api that, for some reason, only works if I set the Content-Type header to 'application/xml'. Using 'application/xml; charset=UTF-8' fails.
I already tried to explicitly set this header for the value I want, but I still get this error. This is the example request I'm running on Firefox:
$http({
method: 'POST',
headers: { 'Content-Type': 'application/xml' },
data: '<?xml version="1.0" encoding="UTF-8"?>
<PrivateOptionsAPIRequest>
<CountiesForPostalCodeRequest>
<ZipCode>20110</ZipCode>
</CountiesForPostalCodeRequest>
</PrivateOptionsAPIRequest>'
})
I'm not arguing whether this is the best default or not, but what I would expect is that explicitly setting the header the way I'm doing would override this default.
Is there something I can do about it?