Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slycelote committed May 7, 2022
1 parent a286ba7 commit c0ddc43
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libcaide/src/Caide/HttpClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ import Network.HTTP.Client (HttpException(..), HttpExceptionContent(..), Request
#ifdef VERSION_http_client_openssl
import Network.HTTP.Client.OpenSSL (newOpenSSLManager, withOpenSSL)
#else
import Network.Connection (TLSSettings(TLSSettingsSimple))
import Network.HTTP.Client.TLS (mkManagerSettings, newManager)
import Network.HTTP.Client.TLS (newTlsManager)
#endif
import Network.HTTP.Types.Header (RequestHeaders)
import Network.HTTP.Types.Status (statusCode, statusMessage)
Expand Down Expand Up @@ -82,8 +81,7 @@ newClient = liftIO $ do
#ifdef VERSION_http_client_openssl
manager <- withOpenSSL newOpenSSLManager
#else
let tlsManagerSettings = mkManagerSettings (TLSSettingsSimple True False False) Nothing
manager <- newManager tlsManagerSettings
manager <- newTlsManager
#endif
return $ Client $ \request -> httpLbs request manager

Expand Down

0 comments on commit c0ddc43

Please sign in to comment.