Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Webhook Header Contains charset in Content-Type

people person
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2024

Hello,

When code changes are pushed to my Bitbucket repos, I am having it hit a webhook on an external tool. The external tool is expecting the content-type of the header in the request to exactly match "application/json" but instead Bitbucket is sending "application/json; charset=utf-8" instead.

Is there a way to modify the content-type in the Header?

 

X-Request-Id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json; charset=utf-8
X-Event-Key: repo:refs_changed

 

HTTP Status: 400

{"err": "This plugin only supports json content. Received: application/json; charset=UTF-8"}

Thanks in advance!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events