Fix content-type for content.json

We now send the content-type `application/json` when JSON resources are requested via the resources endpoint.
Previously, those resources were using content-type `application/octet-stream`.
Also removed the duplicate entry for `text/javascript` content type mapping.

Fixes #35971

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
(cherry picked from commit 7b62c0d266403f341fb5cf66b654ce0aff37ba01)
This commit is contained in:
Thomas Darimont 2025-01-13 17:35:49 +01:00 committed by GitHub
parent 9e147664ef
commit 772b1fdaad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ public class MimeTypeUtil {
static {
map.addMimeTypes("text/css css CSS");
map.addMimeTypes("text/javascript js JS");
map.addMimeTypes("text/javascript js JS");
map.addMimeTypes("application/json json JSON");
map.addMimeTypes("image/png png PNG");
map.addMimeTypes("image/svg+xml svg SVG");
map.addMimeTypes("text/html html htm HTML HTM");