mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-07 17:59:02 +00:00
Fix failing Content-Type related test after SPR-13631 changes
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ public class SampleSecureOAuth2ApplicationTests {
|
||||
.perform(get("/flights/1").accept(MediaTypes.HAL_JSON)
|
||||
.header("Authorization", "Bearer " + accessToken))
|
||||
.andExpect(
|
||||
header().string("Content-Type", MediaTypes.HAL_JSON.toString()))
|
||||
header().string("Content-Type", MediaTypes.HAL_JSON.toString() + ";charset=UTF-8"))
|
||||
.andExpect(status().isOk()).andDo(print()).andReturn();
|
||||
|
||||
Flight flight = this.objectMapper.readValue(
|
||||
|
||||
Reference in New Issue
Block a user