mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-19 21:40:12 -06:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user