Fix content-type for content.json (#35971)

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>
This commit is contained in:
Thomas Darimont 2024-12-17 09:55:09 +01:00 committed by Pedro Igor
parent 9b01e958dc
commit 7b62c0d266

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