Hello everyone,
we are trying to download documents using the downloadDocument method.
During testing, we noticed that the Accept header is always set to application/json, regardless of what we specify (application/pdf or application/xml).
Response body:
{
"error": 406,
"message": "Incorrect Accept Header error",
"supportedAcceptHeaders": [
"application/vnd.oasis.ubl+xml",
"application/xml",
"application/pdf"
]
}
Could you please fix this?
|
localVarHeaderParams.put("Accept", localVarAccept); |