Skip to content

fix(android): Concurrent Range Requests for assets#8357

Merged
OS-pedrogustavobilro merged 8 commits intoionic-team:mainfrom
biguphpc:fix-android-range-requests
Feb 26, 2026
Merged

fix(android): Concurrent Range Requests for assets#8357
OS-pedrogustavobilro merged 8 commits intoionic-team:mainfrom
biguphpc:fix-android-range-requests

Conversation

@biguphpc
Copy link
Contributor

Rebased against the latest main Capacitor branch and updated to resolve merge conflicts for PR #5956.
Checking quickly for requirement in #5956 (comment)

If multiple requests share the same header map,
concurrent requests may end up with each other's
Content-Length value, confusing the browser in case
of range requests.
Range requests can have a non-zero starting point,
in which case the first part of the requested file
should be omitted in the response.
@OS-pedrogustavobilro OS-pedrogustavobilro self-assigned this Feb 25, 2026
@OS-pedrogustavobilro OS-pedrogustavobilro changed the title Fix android range requests fix(android): Concurrent Range Requests for assets Feb 26, 2026
getResponseHeaders is accessible outside of Capacitor Framework. Removing it is a breaking change, instead marking it as deprecated and plan to remove it in a future major version.
@OS-pedrogustavobilro
Copy link
Contributor

Hey @biguphpc thanks for brining the updated PR from @steinjak!

I've made a few minor changes, but overall tested with https://github.com/OS-pedrogustavobilro/capacitor-test-pr8357 and it's working fine with this PR, the headers are being correctly returned.

@OS-pedrogustavobilro OS-pedrogustavobilro merged commit 5e82c89 into ionic-team:main Feb 26, 2026
6 checks passed
This was referenced Feb 26, 2026
tossaro pushed a commit to tossaro/capacitor that referenced this pull request Feb 26, 2026
Co-authored-by: Stein Jakob Nordbø <steinjak@gmail.com>
Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com>
@bwees bwees mentioned this pull request Mar 1, 2026
3 tasks
OS-pedrogustavobilro pushed a commit that referenced this pull request Mar 2, 2026
Closes #8367

Fixes regression introduced by #8357
OS-pedrogustavobilro added a commit that referenced this pull request Mar 3, 2026
Deprecated in Capacitor 8 in #8357; To be removed in Capacitor 9
OS-pedrogustavobilro added a commit that referenced this pull request Mar 3, 2026
Co-authored-by: Stein Jakob Nordbø <steinjak@gmail.com>
Co-authored-by: Pedro Bilro <pedro.gustavo.bilro@outsystems.com>
OS-pedrogustavobilro pushed a commit that referenced this pull request Mar 3, 2026
Closes #8367

Fixes regression introduced by #8357
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.

3 participants