diff --git a/CHANGES.txt b/CHANGES.txt index ed0c9b01..15330cf8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,6 @@ Changelog for Hoogle (* = API change, @ = database format change) + Require and support crypton-connection >= 0.4.1 5.0.18.4, released 2024-01-14 Don't test on GHC 9.2 or earlier Fix up the output of /stats to account for API changes diff --git a/hoogle.cabal b/hoogle.cabal index dafc0945..c5f4c39d 100644 --- a/hoogle.cabal +++ b/hoogle.cabal @@ -53,7 +53,8 @@ library conduit >= 1.3.0, conduit-extra >= 1.2.3.2, containers >= 0.5, - crypton-connection, + crypton-connection >= 0.4.1, + data-default-class, deepseq, directory, extra >= 1.6.6, diff --git a/src/Input/Download.hs b/src/Input/Download.hs index 7171f458..5d40608e 100644 --- a/src/Input/Download.hs +++ b/src/Input/Download.hs @@ -6,6 +6,7 @@ import System.FilePath import Control.Monad.Extra import System.Directory import Data.Conduit.Binary (sinkFile) +import Data.Default.Class import qualified Network.HTTP.Conduit as C import Network.Connection import qualified Data.Conduit as C @@ -45,7 +46,8 @@ downloadFile insecure file url = do (TLSSettingsSimple { settingDisableCertificateValidation = insecure, settingDisableSession = False, - settingUseServerName = False + settingUseServerName = False, + settingClientSupported = def }) Nothing runResourceT $ do response <- C.http request manager