loucast0159
3 years agoOccasional Contributor
Accept header generated in lower case not working in "Try It Out" or with cURL
The "Try It Out" and cURL generated gives error on Accept Header.
Seems the accept header is being generated with lower case.
With cURL when we change "accept" to "Accept" we get a proper response.
How can we make the header being generated as upper case initial letter ?
curl -X 'GET' 'https://host.com/cm/accounts/19415703 ' -H 'accept: application/json' -H 'x-api-key: xxxxxx' -H 'Authorization: Bearer xxxx'
We’re getting this error when trying out one of the methods in our sample API:
{
"code": null,
"description": "Expected Accept in headers",
"status": 400
}
We cannot release the documentation to consumers with this problem.
Thanks in advance for your prompt response with a resolution to this.