Fix handling of collections by non-reactive Consumers

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

View File

@@ -775,6 +775,9 @@ public class SimpleFunctionRegistry implements FunctionRegistry {
*/
@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;
}