Revert "GH-986 Fix regression to NOT attempt output conversion of Message<byte[]>"

This reverts commit b1237c2ab2.
This commit is contained in:
Oleg Zhurakousky
2023-01-19 17:19:03 +01:00
parent 7d1751cc59
commit 6b9b9995ab
2 changed files with 1 additions and 28 deletions

View File

@@ -1136,7 +1136,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry {
}
if (convertedOutput instanceof Message) {
if (((Message) convertedOutput).getPayload() instanceof byte[]) {
if (((Message) convertedOutput).getPayload() instanceof byte[] && ObjectUtils.isEmpty(contentType)) {
return convertedOutput;
}
else if (isExtractPayload((Message<?>) convertedOutput, type)) {