Use MediaType.APPLICATION_CBOR constant

See https://github.com/spring-projects/spring-framework/pull/23042

Closes gh-16986
This commit is contained in:
Johnny Lim 2019-05-29 02:19:23 +09:00 committed by Stephane Nicoll
parent ecf7c817a6
commit 0741e6470f
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class RSocketStrategiesAutoConfiguration {
return (strategy) -> {
ObjectMapper objectMapper = builder.factory(new CBORFactory()).build();
MediaType[] supportedTypes = new MediaType[] {
new MediaType("application", "cbor") };
MediaType.APPLICATION_CBOR };
strategy.decoder(new Jackson2CborDecoder(objectMapper, supportedTypes));
strategy.encoder(new Jackson2CborEncoder(objectMapper, supportedTypes));
};