node.js-chatbot icon indicating copy to clipboard operation
node.js-chatbot copied to clipboard

Fix content type for jsn requests

Open brainrepo opened this issue 4 years ago • 0 comments

During message sent, the api response is

{
  status: 500,
  message: {
    code: 500,
    message: "Content type 'text/plain;charset=UTF-8' not supported",
    tid: 'c7b2e249eae16f19',
    sid: 'c7b2e249eae16f19'
  }
}

with this fix, the correct content type is passed in headers

brainrepo avatar Oct 13 '21 14:10 brainrepo