GH-769 Fix regression with FunctionArroundWrapper

Resolves #769
This commit is contained in:
Oleg Zhurakousky
2021-11-17 15:43:46 +01:00
parent 7d8b041d9d
commit 2ae0c12b84

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;
}