haskell / haskell/hackage-security

Deal with 200 (rather than 206) response to get-range request

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
hackage-security
Dominant language
Haskell
Stars
63
Forks
56
PR merge metrics
No merged PRs in 30d

Description

I saw this happening but I do not remember the circumstances and cannot reconstruct it. If it happens again, we can deal with it once we understand better why it's happening (perhaps the right thing to do is to change the `ServerCapabilities` to record that this server does not support range requests after all, even though we concluded it did). Downloading the entire file is _not_ the right thing to do: we don't want to download the uncompressed index.

For now a 200 response to a get-range request will result in an exception.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.