capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

fix(Android): range requests

Open bolivir opened this issue 2 months ago • 1 comments

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 https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/453 (the same issue is present Capacitor).

This PR proposes to return a copy of the map on each invocation. Based on https://github.com/ionic-team/capacitor/pull/5956

bolivir avatar Oct 22 '25 11:10 bolivir

Would love to see this merged this should also fix https://github.com/ionic-team/capacitor/issues/6021.

JeroenBoesten avatar Oct 22 '25 12:10 JeroenBoesten