Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw an error if server ignores RANGE header #52

Open
johtso opened this issue Mar 16, 2023 · 0 comments
Open

Throw an error if server ignores RANGE header #52

johtso opened this issue Mar 16, 2023 · 0 comments

Comments

@johtso
Copy link

johtso commented Mar 16, 2023

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.

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

No branches or pull requests

1 participant