Build with the http-client-restricted library when available
Otherwise use the vendored copy as before. The library is in Debian testing but not stable. Once it reaches stable, the vendored copy can be removed. Did not add it to debian/control because IIRC that's used to build git-annex on stable too, possibly. However, the Debian maintainer will probably want to make the package depend on libghc-http-client-restricted-dev This commit was sponsored by Ilya Shlyakhter on Patreon.
This commit is contained in:
parent
01eb863a14
commit
104b3a9c6a
7 changed files with 28 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
|||
{-# LANGUAGE RankNTypes #-}
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
{-# LANGUAGE BangPatterns #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
|
||||
module Utility.Url (
|
||||
newManager,
|
||||
|
@ -44,7 +45,11 @@ module Utility.Url (
|
|||
|
||||
import Common
|
||||
import Utility.Metered
|
||||
#ifdef WITH_HTTP_CLIENT_RESTRICTED
|
||||
import Network.HTTP.Client.Restricted
|
||||
#else
|
||||
import Utility.HttpManagerRestricted
|
||||
#endif
|
||||
import Utility.IPAddress
|
||||
|
||||
import Network.URI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue