Genesys add by default Content-Type header in GET request?

Hello! I have a question. I have a data action that consumes an external web service. If I consume the UAT web service, everything works correctly. However, when I use the production environment, the data action fails. In the error on the web service side, I observe that the "Content-Type: application/json" header is being sent in a GET request, and this is what causes the failure. I am not adding this header; but when debugging my service, I see that the request arrives with it. My question is, does Genesys add it automatically?

Hi Marco,

We do automatically add a content-type header. This was solved for one customer by adding a content-type header in the request with an empty string for a value. So something like this:

  "headers": {
    "content-type": ""
  },

--Jason

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.