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

Fix/call response modifier plugin 597 #598

Conversation

danielfpferreira
Copy link

@danielfpferreira danielfpferreira commented Aug 10, 2022

Fixes #597
Check if next proxy resp is nil when returning early when there's an error
If resp is not nil, for instance when we have a merged response and a mergeError with at least one of the backends returning a response we would still want to call a response modifier for that response.

Fixed a couple of typos

@danielfpferreira danielfpferreira force-pushed the fix/call-response-modifier-plugin-597 branch 2 times, most recently from d001e61 to 216025a Compare August 10, 2022 17:01
@danielfpferreira danielfpferreira changed the title Fix/call response modifier plugin 597 Fix/call response modifier plugin #597 Aug 10, 2022
@danielfpferreira danielfpferreira changed the title Fix/call response modifier plugin #597 Fix/call response modifier plugin 597 Aug 10, 2022
@alombarte alombarte requested a review from kpacha August 11, 2022 09:08
Allows merged response from multible backends to be modified if at least
one of the backends replied, resp is not nil and the error would be for
instance a mergeErr.

Signed-off-by: Daniel Ferreira <[email protected]>
@danielfpferreira danielfpferreira force-pushed the fix/call-response-modifier-plugin-597 branch from 216025a to f095e8e Compare August 11, 2022 16:17
@github-actions
Copy link

This pull request was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backend plugin middleware does not execute response modifier if proxy returns an error in at least 1 backend
1 participant