From 4c2072d20c6cd6435aa7ebed8df94197b8af2637 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 10 Nov 2022 23:38:11 +0900 Subject: [PATCH] Use unquoted value in assertion message in MediaType.checkParameters() --- .../src/main/java/org/springframework/http/MediaType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/http/MediaType.java b/spring-web/src/main/java/org/springframework/http/MediaType.java index 7ae2229f1d..71add2323e 100644 --- a/spring-web/src/main/java/org/springframework/http/MediaType.java +++ b/spring-web/src/main/java/org/springframework/http/MediaType.java @@ -547,7 +547,7 @@ public class MediaType extends MimeType implements Serializable { String unquotedValue = unquote(value); double d = Double.parseDouble(unquotedValue); Assert.isTrue(d >= 0D && d <= 1D, - () -> "Invalid quality value \"" + value + "\": should be between 0.0 and 1.0"); + () -> "Invalid quality value \"" + unquotedValue + "\": should be between 0.0 and 1.0"); } }