Open SebastianSchlegel opened 1 month ago
What is the problem that is happening?
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
In
ModifiedServerHttpResponse.writeWith
anew BodyInserterContext()
is used which calls the unmodifiableExchangeStrategies.withDefaults()
. This one doesn't use any provided encoder or mapper bean.I wonder if this is really an issue with the ModifyResponseBodyGatewayFilterFactory or if I'm using it wrong. It could be resolved by adding a new
ExchangeStrategy
parameter and usingBodyInserterContext(exchangeStrategy)
then.https://github.com/spring-cloud/spring-cloud-gateway/blob/fc26a8db9f5d2831b61b71c635b568d28306ae21/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/rewrite/ModifyResponseBodyGatewayFilterFactory.java#L232