capacitor
capacitor copied to clipboard
fix(Android): range requests
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
Would love to see this merged this should also fix https://github.com/ionic-team/capacitor/issues/6021.