spring-cloud/spring-cloud-gateway
View on GitHubRequest headers can not be modified after request pass through ModifyRequestBodyGatewayFilter
Open
#2,548 opened on Mar 11, 2022
documentationhelp wanted
Description
Describe the bug Spring cloud version:3.0.3 I am using ModifyRequestBodyGatewayFilter to cache request body, but when request pass through ModifyRequestBodyGatewayFilter, heads can not be modified any more, at opposite, headers can be modified before ModifyRequestBodyGatewayFilter.
I guess this problem happened because decorate method from ModifyRequestBodyGatewayFilterFactory. Spring cloud gateway user can not get new headers from MutatedServerHttpRequest but can only get header from the time point when decorate method be called.

I am not sure this is an issue or it's a mistake about my usage.