http-client 0.5.12 → 0.5.12.1
raw patch · 10 files changed
+20/−21 lines, 10 filesdep ~base
Dependency ranges changed: base
Files
- ChangeLog.md +7/−0
- Network/HTTP/Client.hs +0/−2
- Network/HTTP/Client/Core.hs +0/−1
- Network/HTTP/Client/Headers.hs +2/−2
- Network/HTTP/Client/Manager.hs +1/−4
- Network/HTTP/Client/MultipartFormData.hs +1/−1
- Network/HTTP/Client/Response.hs +4/−4
- Network/HTTP/Client/Types.hs +0/−2
- Network/HTTP/Client/Util.hs +0/−4
- http-client.cabal +5/−1
ChangeLog.md view
@@ -1,3 +1,10 @@+## 0.5.12.1++* Make the chunked transfer-encoding detection case insensitive+ [#303](https://github.com/snoyberg/http-client/pull/303)+* Remove some unneeded language extensions+* Mark older versions of GHC as unsupported+ ## 0.5.12 * Added `requestFromURI` and `requestFromURI_` functions.
Network/HTTP/Client.hs view
@@ -1,6 +1,4 @@-{-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-}-{-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE CPP #-}
Network/HTTP/Client/Core.hs view
@@ -1,5 +1,4 @@ {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} module Network.HTTP.Client.Core ( withResponse
Network/HTTP/Client/Headers.hs view
@@ -1,6 +1,6 @@+{-# LANGUAGE DisambiguateRecordFields #-} {-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE ViewPatterns #-}+{-# LANGUAGE ViewPatterns #-} module Network.HTTP.Client.Headers ( parseStatusHeaders ) where
Network/HTTP/Client/Manager.hs view
@@ -1,9 +1,6 @@-{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE CPP #-}-{-# LANGUAGE BangPatterns #-} {-# LANGUAGE RankNTypes #-}+{-# LANGUAGE ScopedTypeVariables #-} module Network.HTTP.Client.Manager ( ManagerSettings (..) , newManager
Network/HTTP/Client/MultipartFormData.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE CPP, OverloadedStrings #-}+{-# LANGUAGE OverloadedStrings #-} -- | This module handles building multipart/form-data. Example usage: -- -- > {-# LANGUAGE OverloadedStrings #-}
Network/HTTP/Client/Response.hs view
@@ -1,7 +1,5 @@-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE CPP #-}+{-# LANGUAGE RecordWildCards #-} module Network.HTTP.Client.Response ( getRedirectedRequest , getResponse@@ -11,6 +9,8 @@ import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as S8 import qualified Data.ByteString.Lazy as L+import qualified Data.CaseInsensitive as CI+import Control.Arrow (second) import Data.Monoid (mempty) @@ -88,7 +88,7 @@ let conn = managedResource mconn StatusHeaders s version hs <- parseStatusHeaders conn timeout' cont let mcl = lookup "content-length" hs >>= readDec . S8.unpack- isChunked = ("transfer-encoding", "chunked") `elem` hs+ isChunked = ("transfer-encoding", CI.mk "chunked") `elem` map (second CI.mk) hs -- should we put this connection back into the connection manager? toPut = Just "close" /= lookup "connection" hs && version > W.HttpVersion 1 0
Network/HTTP/Client/Types.hs view
@@ -1,7 +1,5 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveFoldable #-}-{-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-}
Network/HTTP/Client/Util.hs view
@@ -1,9 +1,5 @@-{-# LANGUAGE CPP #-}-{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-}-{-# LANGUAGE TupleSections #-} module Network.HTTP.Client.Util ( readDec ) where
http-client.cabal view
@@ -1,5 +1,5 @@ name: http-client-version: 0.5.12+version: 0.5.12.1 synopsis: An HTTP client engine description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/http-client>. homepage: https://github.com/snoyberg/http-client@@ -65,6 +65,10 @@ if !impl(ghc>=8.0) build-depends: semigroups >= 0.16.1++ -- See build failure at https://travis-ci.org/snoyberg/http-client/jobs/359573631+ if impl(ghc < 7.10)+ buildable: False if os(mingw32) build-depends: Win32, safe