Skip to content

Conversation

@bolivir
Copy link

@bolivir bolivir commented Oct 22, 2025

The responseHeaders map is shared between threads, causing simultaneous requests to return the same Content-Length to the browser in case of range requests. See the illustration in ionic-team/cordova-plugin-ionic-webview#453 (the same issue is present Capacitor).

This PR proposes to return a copy of the map on each invocation. Based on #5956

Return a new HashMap instance of responseHeaders to prevent external modifications.
@bolivir bolivir changed the title Android range requests fix(Android): range requests Oct 22, 2025
@JeroenBoesten
Copy link

Would love to see this merged this should also fix #6021.

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