GH-769 Fix regression with FunctionArroundWrapper

Resolves #769
This commit is contained in:
Oleg Zhurakousky
2021-11-17 15:43:46 +01:00
parent 8d2125cad3
commit 12b2e6d41f

View File

@@ -1135,7 +1135,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
output = enhancer.apply(output);
}
if (functionAroundWrapper == null && ObjectUtils.isEmpty(contentType) && !(output instanceof Publisher)) {
if (ObjectUtils.isEmpty(contentType) && !(output instanceof Publisher)) {
return output;
}