mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-11 04:04:07 +00:00
Merge pull request #16986 from izeye
* pr/16986: Use MediaType.APPLICATION_CBOR constant
This commit is contained in:
+1
-1
@@ -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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user