Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/bun/src/integrations/bunserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ function wrapRequestHandler<T extends RouteHandler = RouteHandler>(
if (response?.status) {
setHttpStatus(span, response.status);
isolationScope.setContext('response', {
headers: response.headers.toJSON(),
Copy link

Choose a reason for hiding this comment

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

Missing regression test for the header leak fix

Low Severity

This fix PR removes response headers from the isolation scope context but does not include a regression test verifying that the response context set via isolationScope.setContext contains only status_code and no headers. A test asserting the absence of headers in the response context would prevent this leak from being reintroduced. The review rules require fix PRs to include at least one test that covers the regression being fixed.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

status_code: response.status,
});
}
Expand Down
Loading