Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModifiedResponseBodyGatewayFilter only if the content-type condition of the response is met #3430

Open
foameraserblue opened this issue Jun 13, 2024 · 0 comments

Comments

@foameraserblue
Copy link

Is your feature request related to a problem? Please describe.
I want to use ModifiedResponseBodyGatewayFilter only if the content-type condition of the response is met.

Describe the solution you'd like
Provides a method to make it useful only when the content-type of the response is APPLICATION_JSON.

Describe alternatives you've considered
I think it would be good to be able to add specific conditions to config and have those conditions judged in front of ModifiedServerHttpResponse.writeWith().

Additional context
It's very difficult when an image file comes as a response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant