You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
I wanted to modify response body with changing Content-type, but probably SCG ignoring newContentType
ModifyResponseGatewayFilter is not using newContentType in code as expected to set response 'Content-Type' header.
Problem:
I wanted to modify response body with changing Content-type, but probably SCG ignoring newContentType
ModifyResponseGatewayFilter is not using newContentType in code as expected to set response 'Content-Type' header.
Don't see any usage of newContentType here:
https://github.com/spring-cloud/spring-cloud-gateway/blob/main/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/rewrite/ModifyResponseBodyGatewayFilterFactory.java#L91
SCG version 3.1.2
Example:
Current behaviour:
Response content-type is set from actual target response from external system.
I'am not getting 'text/plain' as expected
Expected behaviour:
Response content-type is set from newContentType field and equals 'text/plain'.
Further:
I can manage to fix this problem after discussion.
The text was updated successfully, but these errors were encountered: