Skip to content
Snippets Groups Projects
Commit 2f58011b authored by Edsko de Vries's avatar Edsko de Vries Committed by Mikhail Glushenkov
Browse files

Don't ignore 206 response in plain-http transport

The plainHttpTransport implementation saved the resulting file only when the
server responded with 200 OK, thus ignoring the payload from the server when
the server responded with a 206 Partial Content. This was causing incremental
updates through hackage-security to fail (it wouldn't fail fatally;
hackage-security would notice the invalid timestamp and download the whole
thing instead, but of course this means we're not actually getting any
incremental behaviour).

(cherry picked from commit da403dff)
parent 111a1ee7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment