From 5613922fba02b3826fd4d00bc2cf49b3734d27a8 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 4 Oct 2022 10:09:07 +0200 Subject: [PATCH] Polish test This test should not rely on a particular content-type as none is defined on the producing end, not on the requesting end. --- .../result/method/annotation/RequestMappingIntegrationTests.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java index f3191dbf00..3816c50a63 100644 --- a/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java +++ b/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java @@ -68,7 +68,6 @@ class RequestMappingIntegrationTests extends AbstractRequestMappingIntegrationTe HttpHeaders headers = getRestTemplate().headForHeaders(url); String contentType = headers.getFirst("Content-Type"); assertThat(contentType).isNotNull(); - assertThat(contentType.toLowerCase()).isEqualTo("text/html;charset=utf-8"); assertThat(headers.getContentLength()).isEqualTo(3); }