Fix handling of collections by non-reactive Consumers

This commit is contained in:
Oleg Zhurakousky
2022-04-06 17:23:48 +02:00
parent eb8cc76108
commit db3c8f71a5

View File

@@ -815,6 +815,9 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
*/
@SuppressWarnings("unchecked")
private Object fluxifyInputIfNecessary(Object input) {
if (input instanceof Message && !((Message) input).getHeaders().containsKey("user-agent") && this.isConsumer() && !this.isInputTypePublisher()) {
return input;
}
if (FunctionTypeUtils.isMultipleArgumentType(this.inputType)) {
return input;
}