packages feed

http-conduit 1.8.1 → 1.8.2

raw patch · 3 files changed

+6/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Network.HTTP.Conduit: managerCertStore :: ManagerSettings -> IO CertificateStore

Files

Network/HTTP/Conduit.hs view
@@ -104,6 +104,7 @@     , ManagerSettings     , managerConnCount     , managerCheckCerts+    , managerCertStore       -- *** Defaults     , defaultCheckCerts       -- * Cookies
Network/HTTP/Conduit/Manager.hs view
@@ -70,6 +70,8 @@       -- ^ Number of connections to a single host to keep alive. Default: 10.     , managerCheckCerts :: CertificateStore -> S8.ByteString -> [X509] -> IO CertificateUsage       -- ^ Check if the server certificate is valid. Only relevant for HTTPS.+    , managerCertStore :: IO CertificateStore+      -- ^ Load up the certificate store. By default uses the system store.     }  type X509Encoded = L.ByteString@@ -78,6 +80,7 @@     def = ManagerSettings         { managerConnCount = 10         , managerCheckCerts = defaultCheckCerts+        , managerCertStore = getSystemCertificateStore         }  -- | Check certificates using the operating system's certificate checker.@@ -147,7 +150,7 @@ -- | Create a 'Manager'. You must manually call 'closeManager' to shut it down. newManager :: ManagerSettings -> IO Manager newManager ms = do-    certStore <- getSystemCertificateStore+    certStore <- managerCertStore ms     mapRef <- I.newIORef (Just Map.empty)     certCache <- I.newIORef Map.empty     _ <- forkIO $ reap mapRef certCache
http-conduit.cabal view
@@ -1,5 +1,5 @@ name:            http-conduit-version:         1.8.1+version:         1.8.2 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>