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
|
@ -2,6 +2,8 @@ git-annex (6.20180510) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* view, vadd: Fix crash when a git submodule has a name starting with a dot.
|
* view, vadd: Fix crash when a git submodule has a name starting with a dot.
|
||||||
* Don't allow entering a view with staged or unstaged changes.
|
* Don't allow entering a view with staged or unstaged changes.
|
||||||
|
* 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.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Mon, 14 May 2018 13:42:41 -0400
|
-- Joey Hess <id@joeyh.name> Mon, 14 May 2018 13:42:41 -0400
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,13 @@ mkUrlOptions defuseragent reqheaders reqparams manager =
|
||||||
UrlOptions useragent reqheaders urldownloader applyrequest manager
|
UrlOptions useragent reqheaders urldownloader applyrequest manager
|
||||||
where
|
where
|
||||||
urldownloader = if null reqparams
|
urldownloader = if null reqparams
|
||||||
|
#if MIN_VERSION_cryptonite(0,6)
|
||||||
then DownloadWithConduit
|
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
|
else DownloadWithCurl reqparams
|
||||||
applyrequest = \r -> r { requestHeaders = requestHeaders r ++ addedheaders }
|
applyrequest = \r -> r { requestHeaders = requestHeaders r ++ addedheaders }
|
||||||
addedheaders = uaheader ++ otherheaders
|
addedheaders = uaheader ++ otherheaders
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue