You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a problem with our assumptions or with how Hackage is serving things. At a surface level, it looks like a lack of base16 encoding before comparison.
The text was updated successfully, but these errors were encountered:
The problem was that Hackage doesn't base64-encode the MD5 header. I've changed the String to a CheckHexDigest type that has slightly different techniques for checking
a raw String
a raw ByteString
a ByteString known to be a "header"
Incidentally, the "raw ByteString" option provides a micro-optimization, since that comparison doesn't go through String anymore.
This touched code in Data.Fetch. @snoyberg can you verify that the affected fetch code still works as expected? (Changes are on the download-enhancements branch).
In working on #199, I discovered that calling
download
on the URL http://hackage.haskell.org/package/acme-missiles-0.3/acme-missiles-0.3.tar.gz produces:Not sure if this is a problem with our assumptions or with how Hackage is serving things. At a surface level, it looks like a lack of base16 encoding before comparison.
The text was updated successfully, but these errors were encountered: