ShaqS
Voiceflow Partners6mo ago
1 reply
Shaq

Duplication of Content-Type when trying to send a API POST request

Hi noticed some weird functionality that I have never seen before and honestly is extremely confusing to me. Not sure if it is a features on not so I thought, I'd mention it here

When trying to send an POST request with the Content-Type explicitly mentioned as application/json and having the body raw JSON I get an error saying 'application/JSON,application/JSON is not supported by this resource'

After a few tests I noticed that it was automatically adding application/JSON as the content type and keeping the value empty fixed the issue and let me proceed with the POST request and 0 errors.

Could anyone offer any insight as to why this happens or if it is a bug because I would have to immediately make these changes for all my clients accordingly
image.png
image.png
Was this page helpful?