Rest API expose post service response header text/xml instead of text/plain

OS geniuses!

Where exposing a rest API post service for a customer to consume.

The customer wants us to send a response of the type text/xml instead of text/plain/

Is it possible to change the reponse content-type of a exposing rest service?

Where using OS11 in the personalcloud!

Hi Freek,

I've seen one forum post already for content-type. Let me check


The fix is to add the AddHeader function in the OnRequest. I had it on the OnResponse but that does not work!