Skip to content

Commit 73a09a8

Browse files
committed
Merge pull request #16986 from izeye
* pr/16986: Use MediaType.APPLICATION_CBOR constant
2 parents ecf7c81 + 0741e64 commit 73a09a8

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)