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 079234b021
commit 9fec8d5d23
2 changed files with 28 additions and 1 deletions

View File

@@ -1172,7 +1172,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
}
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)) {