fix build with old http-client versions
This commit is contained in:
parent
cd4c97156e
commit
0a2f7c261f
2 changed files with 6 additions and 8 deletions
|
@ -50,6 +50,11 @@ closeManager :: Manager -> IO ()
|
|||
closeManager _ = return ()
|
||||
#endif
|
||||
|
||||
#if ! MIN_VERSION_http_client(0,5,0)
|
||||
responseTimeoutNone :: Maybe Int
|
||||
responseTimeoutNone = Nothing
|
||||
#endif
|
||||
|
||||
managerSettings :: ManagerSettings
|
||||
#if MIN_VERSION_http_conduit(2,1,7)
|
||||
managerSettings = tlsManagerSettings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue