mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-30 03:09:03 +00:00
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.
This commit is contained in:
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user