hackage-security icon indicating copy to clipboard operation
hackage-security copied to clipboard

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

Open edsko opened this issue 10 years ago • 0 comments

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.

edsko avatar Jul 10 '15 14:07 edsko