Merge pull request #16986 from izeye

* pr/16986:
  Use MediaType.APPLICATION_CBOR constant
pull/17002/head
Stephane Nicoll 6 years ago
commit 73a09a8aaa

@ -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));
};

Loading…
Cancel
Save