Workaround for bug in an old version of cryptonite that broke https downloads, by using curl for downloads when git-annex is built with it.
This commit was supported by the NSF-funded DataLad project.
This commit is contained in:
parent
af4741b45f
commit
5204e1dd9d
2 changed files with 8 additions and 0 deletions
|
@ -90,7 +90,13 @@ mkUrlOptions defuseragent reqheaders reqparams manager =
|
|||
UrlOptions useragent reqheaders urldownloader applyrequest manager
|
||||
where
|
||||
urldownloader = if null reqparams
|
||||
#if MIN_VERSION_cryptonite(0,6)
|
||||
then DownloadWithConduit
|
||||
#else
|
||||
-- Work around for old cryptonite bug that broke tls.
|
||||
-- https://github.com/vincenthz/hs-tls/issues/109
|
||||
then DownloadWithCurl reqparams
|
||||
#endif
|
||||
else DownloadWithCurl reqparams
|
||||
applyrequest = \r -> r { requestHeaders = requestHeaders r ++ addedheaders }
|
||||
addedheaders = uaheader ++ otherheaders
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue