mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
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:
parent
9e147664ef
commit
772b1fdaad
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user