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' }); |
Setting this header will result in the backend sending you just the
application/jsontype (except for.jsonldwhere it will send the more specializedapplication/ld+jsontype which is consistent iwthapplication/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).interlex/src/components/SingleTermView/index.jsx
Line 186 in 5837c98