Skip to content

Accept header for downloadDocument is always set to application/json #16

@HeikoNitrobox

Description

@HeikoNitrobox

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions