Skip to content

Throw an error if server ignores RANGE header #52

@johtso

Description

@johtso

The HTTP spec dictates that a server may completely ignore the RANGE header if it doesn't support it.

It would be great if a little check was done to make sure the content-length of the response matches the request so we don't end up downloading entire databases.

Specifically I found that Cloudflare usually support partial ranges for cached files, but suddenly stops supporting them above a certain size limit. This left me scratching my head when I saw the seemingly stalled requests. Was only after checking my network activity that I saw it was downloading 700MB of data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions