Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Set Content-type header in the API transport if the text to be sent is valid JSON #8282
This change makes the API transport attempt to decode the request body text that is to be posted to the API endpoint as JSON prior to the data being posted. If the body text is identified as valid JSON, the Content-type HTTP header is set to 'application/json', which is required by many API endpoints that expect JSON formatted inputs.
If you would like to test this pull request then please run: