Skip to content

Commit 0741e64

Browse files
izeyesnicoll
authored andcommitted
Use MediaType.APPLICATION_CBOR constant
See spring-projects/spring-framework#23042 Closes gh-16986
1 parent ecf7c81 commit 0741e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/rsocket/RSocketStrategiesAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public RSocketStrategiesCustomizer jacksonCborStrategyCustomizer(
8383
return (strategy) -> {
8484
ObjectMapper objectMapper = builder.factory(new CBORFactory()).build();
8585
MediaType[] supportedTypes = new MediaType[] {
86-
new MediaType("application", "cbor") };
86+
MediaType.APPLICATION_CBOR };
8787
strategy.decoder(new Jackson2CborDecoder(objectMapper, supportedTypes));
8888
strategy.encoder(new Jackson2CborEncoder(objectMapper, supportedTypes));
8989
};

0 commit comments

Comments
 (0)