Skip to content

Fix wrong headers after redirects and broken entries - #164

Merged
soulgalore merged 1 commit into
mainfrom
fix-cookie-redirect-timing-bugs
Nov 3, 2026
Merged

soulgalore merged 1 commit into
mainfrom
fix-cookie-redirect-timing-bugs

Conversation

@soulgalore

Copy link
Copy Markdown
Member

After a redirect, the final response showed the headers of the redirect response instead of its own. Chrome sends the same request id for every step of a redirect chain, and the extra info that belonged to the redirect was later applied to the target response.

Requests sent before the first page event were added again each time a new root frame started loading. The HAR then had duplicate entries with no page reference. This happens with Puppeteer traces and with iframes that Chrome does not report as attached.

Responses without timing data, for example from cache, got a null receive time and total time once loading finished, which gives an invalid HAR.

Assisted-by: Claude Opus 5.5 [email protected]

After a redirect, the final response showed the headers of the redirect response instead of its own. Chrome sends the same request id for every step of a redirect chain, and the extra info that belonged to the redirect was later applied to the target response.

Requests sent before the first page event were added again each time a new root frame started loading. The HAR then had duplicate entries with no page reference. This happens with Puppeteer traces and with iframes that Chrome does not report as attached.

Responses without timing data, for example from cache, got a null receive time and total time once loading finished, which gives an invalid HAR.

Assisted-by: Claude Opus 5.5 [email protected]
@soulgalore
soulgalore merged commit 34d8a69 into main Nov 3, 2026
3 checks 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.

1 participant