Skip to content

incorrect application/json header sent for non-json types #159

Description

@tgbugs

Setting this header will result in the backend sending you just the application/json type (except for .jsonld where it will send the more specialized application/ld+json type which is consistent iwth application/json). The type field in the permalink below should probably not be set at all? There might also be other places where a similar issue occurs. I would suggest that the general solution is to not use the extension and always set the mime type to be what you want. The reference list of mimetypes (and extension mappings are specified here: https://github.com/tgbugs/interlex/blob/6ecab2f317cb0f66157760bca12a0d86e1c906e3/interlex/render.py#L47-L72).

const blob = new Blob([formattedData], { type: 'application/json' });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions