Skip to content

fix(har): treat .zip extension case-insensitively - #43511

Closed
Alok Pandey (alok-108) wants to merge 1 commit into
microsoft:mainfrom
alok-108:fix-har-zip-case
Closed

Alok Pandey (alok-108) wants to merge 1 commit into
microsoft:mainfrom
alok-108:fix-har-zip-case

Conversation

@alok-108

Copy link
Copy Markdown
Contributor

Fixes #43503

recordHar, tracing.startHar() and routeFromHAR() checked the path with a case-sensitive endsWith('.zip'). With har.ZIP the default content stayed embed and a plain JSON file was written under a .ZIP name, which routeFromHAR then could not read as an archive.

The check is now case-insensitive in the client (browserContext.ts, tracing.ts) and in harOpen. Added a round-trip test with har.ZIP; it fails without the fix.

@dcrousso

Copy link
Copy Markdown
Contributor

this was handled in #43550

@alok-108
Alok Pandey (alok-108) deleted the fix-har-zip-case branch October 22, 2026 20:22
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.

[Bug]: recordHar and tracing.startHar do not recognize uppercase .ZIP extension and write plain json

2 participants