Skip to content

Responses to attachment range requests, spanning full range, does not provide a partial/range response #5342

Description

@ssddanbrown

Seems to be causing issues serving video in chromium based browsers.
"Rare Candy" on discord helped find the cause, which is this line:

} elseif ($end - $start < $this->fileSize - 1) {

Due to this, we're not sending partial/range responses to full range requests, which kinda makes sense in a way, but it seems like browsers still want/need that full range response (even for a full response) to work as desired.
Can be solved by removing the -1, but might want to check if that condition is redundant or not.
Needs test to cover.

Discord thread: https://discord.com/channels/578552496637739008/1247823044869886006

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions