Skip to content

Cannot download due to actual size being greater than Content‑Length #207

@ExE-Boss

Description

@ExE-Boss

TypedArray​.prototype​.set(…) throws a RangeError when track.pos + value.length is greater than track.len, which happens when the data is further compressed in transit (which causes Content‑Length to be smaller than the actual size).

A better option would be to rely on the Response​.prototype​.bytes() method or the Response​.prototype​.arrayBuffer() method when the former is unavailable, as those handle that case correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions