Skip to content

Conversation

@sdangol
Copy link
Contributor

@sdangol sdangol commented Nov 19, 2025

Summary

This MR fixes the bug when the Response didn't get mutated when a middleware returns early when there are multiple middlewares.

Changes

  • Moved the Response mutation logic to the composeMiddleware function

Please provide a summary of what's being changed

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #4772


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@sdangol sdangol self-assigned this Nov 19, 2025
@boring-cyborg boring-cyborg bot added event-handler This item relates to the Event Handler Utility tests PRs that add or change tests labels Nov 19, 2025
@pull-request-size pull-request-size bot added the size/M PR between 30-99 LOC label Nov 19, 2025
@sdangol sdangol requested a review from svozza November 19, 2025 16:06
@sonarqubecloud
Copy link

@sdangol sdangol requested a review from svozza November 20, 2025 10:16
@sdangol sdangol merged commit 2fe04e3 into main Nov 20, 2025
66 checks passed
@sdangol sdangol deleted the fix/compose-middleware branch November 20, 2025 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

event-handler This item relates to the Event Handler Utility size/M PR between 30-99 LOC tests PRs that add or change tests

Projects

Status: Working on it

Development

Successfully merging this pull request may close these issues.

Bug: Response does not get mutated when Middleware returns early

2 participants