From 73c5d8730883c484413a9d215abf8e7ce1ffec58 Mon Sep 17 00:00:00 2001 From: Joseph Heenan Date: Thu, 26 Feb 2026 15:56:52 +0000 Subject: [PATCH] Remove charset=utf-8 from json contentype type It's not needed as json is utf8 by default and the charset tag has no defined meaning for this content type. --- .../java/com/authlete/jaxrs/server/util/ResponseUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/authlete/jaxrs/server/util/ResponseUtil.java b/src/main/java/com/authlete/jaxrs/server/util/ResponseUtil.java index bfaf1fa..60b5f98 100644 --- a/src/main/java/com/authlete/jaxrs/server/util/ResponseUtil.java +++ b/src/main/java/com/authlete/jaxrs/server/util/ResponseUtil.java @@ -47,10 +47,10 @@ public class ResponseUtil MediaType.TEXT_PLAIN_TYPE.withCharset("UTF-8"); /** - * {@code "application/json;charset=UTF-8"} + * {@code "application/json"} */ private static final MediaType MEDIA_TYPE_JSON = - MediaType.APPLICATION_JSON_TYPE.withCharset("UTF-8"); + MediaType.APPLICATION_JSON_TYPE; /** * {@code "application/jwt"}