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

Resolves #986
This commit is contained in:
Oleg Zhurakousky
2023-01-17 14:15:10 +01:00
parent cb315cf507
commit b1237c2ab2
2 changed files with 28 additions and 1 deletions

View File

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