Skip to content

fix: stop forwarding empty response when no response was received#134

Merged
pawbana merged 2 commits intomainfrom
pb/responses-write-header-fix
Jan 26, 2026
Merged

fix: stop forwarding empty response when no response was received#134
pawbana merged 2 commits intomainfrom
pb/responses-write-header-fix

Conversation

@pawbana
Copy link
Contributor

@pawbana pawbana commented Jan 20, 2026

Fixes edge case in responses blocking interceptor.
When no response was received from upstream, first custom error was sent then empty / not initialized copy of the response was forwarded.
Fix is to not sent empty copies of responses.

@pawbana pawbana requested a review from dannykopping January 20, 2026 16:51
Copy link
Collaborator

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a test for this scenario?

@pawbana pawbana force-pushed the pb/responses-write-header-fix branch from 57ddf2f to 7e9d0e7 Compare January 23, 2026 15:47
@pawbana pawbana merged commit 158d1a4 into main Jan 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants