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 7b62c0d266)
This commit is contained in:
Thomas Darimont
2025-01-13 17:35:49 +01:00
committed by GitHub
parent 9e147664ef
commit 772b1fdaad

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