Skip to content

fix: outgoing body capture stream preservation#133

Merged
georgidhristov merged 5 commits into
mainfrom
pr-131
Jun 26, 2026
Merged

fix: outgoing body capture stream preservation#133
georgidhristov merged 5 commits into
mainfrom
pr-131

Conversation

@georgidhristov

Copy link
Copy Markdown
Collaborator

Fixes #114

Summary

Fixes outgoing HTTP body capture so DebugProbe limits how much body content is read without consuming the response stream for the application.

Changes

  • Read only up to MaxBodyCaptureSizeBytes + 1 when capturing outgoing bodies
  • Mark captured bodies as [truncated] when they exceed the configured limit
  • Preserve outgoing response behavior by replaying captured bytes back to the caller
  • Respect the response body charset during capture
  • Add regression tests for streamed response preservation and charset handling

@georgidhristov georgidhristov merged commit 368b5f6 into main Jun 26, 2026
2 checks passed
@georgidhristov georgidhristov deleted the pr-131 branch June 26, 2026 04:25
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.

Limit Outgoing HTTP Body Reads Before Trimming

2 participants