Fix encoder/decoder to return decodableMimeTypes

This effectively fixes the Cbor exclusiion
This commit is contained in:
Oleg Zhurakousky
2021-03-15 12:23:27 +01:00
parent 98fe5bc8eb
commit 51dd8cf1d5
3 changed files with 2 additions and 6 deletions

View File

@@ -49,6 +49,7 @@ class MessageAwareJsonDecoder extends AbstractDecoder<Object> {
private final JsonMapper jsonMapper;
MessageAwareJsonDecoder(JsonMapper jsonMapper) {
super(MimeTypeUtils.APPLICATION_JSON);
this.jsonMapper = jsonMapper;
}

View File

@@ -55,6 +55,7 @@ class MessageAwareJsonEncoder extends AbstractEncoder<Object> {
}
MessageAwareJsonEncoder(JsonMapper mapper, boolean isClient) {
super(MimeTypeUtils.APPLICATION_JSON);
this.mapper = mapper;
this.isClient = isClient;
this.byteArrayEncoder = new ByteArrayEncoder();