Commit 85d76ca
committed
Set Content-Length for permanent redirection
Issuing a GET request to `/package/<name-version>.tar.gz` on hackage.haskell.org sometimes
(for whatever reason) responds with an invalid header when using chunked transfer
encoding.
See https://discourse.haskell.org/t/hackage-errors-invalid-hash-s-5170-invalidchunkheaders/12935
Specifying a content length explicitly (hopefully) circumvents the problem.1 parent 8815bc9 commit 85d76ca
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments