Skip to content

Response is parsed as text when Content-Type is not application/json or application/octet-stream #67

@jakubkoje

Description

@jakubkoje

Hey,
I am trying to receive and show pdf file from backend. the issue is that if i do not set the Content-Type header to exactly application/octet-stream, there is no way AFAIK to tell the client to parse it as a arrayBuffer.

Would love an option to override this.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions