mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
don't handle byte arrays with jackson (feed icons, ...)
This commit is contained in:
@@ -40,6 +40,8 @@ public class JsonProvider implements MessageBodyReader<Object>, MessageBodyWrite
|
||||
|
||||
if (type.equals(String.class)) {
|
||||
entityStream.write(value.toString().getBytes(Charsets.UTF_8));
|
||||
} else if (value instanceof byte[]) {
|
||||
entityStream.write((byte[]) value);
|
||||
} else {
|
||||
getMapper().writeValue(entityStream, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user