@@ -13,7 +13,7 @@ import qualified Data.HashMap.Strict as H
1313import Data.Monoid
1414import Data.Text (Text)
1515import qualified Data.Text as T
16−import Network.HTTP.Conduit
16+import Network.HTTP.Client
1717import Prelude hiding (foldr)
1818
1919combineIdAndRef :: Text -> Text -> Text
@@ -61,3 +61,5 @@ safeGet url =
6161 where
6262 handler :: SomeException -> IO (Either Text ByteString)
6363 handler e = return . Left . T.pack . show $ e
64+ simpleHttp u = withManager defaultManagerSettings $ \man ->
65+ parseUrl u >>= \req -> liftM responseBody $ httpLbs req {requestHeaders = ("Connection", "close") : requestHeaders req } man