packages feed

http-client 0.7.3 → 0.7.4

raw patch · 3 files changed

+8/−4 lines, 3 filesdep +base64-bytestringdep −memory

Dependencies added: base64-bytestring

Dependencies removed: memory

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for http-client +## 0.7.4++* Depend on base64-bytestring instead of memory [#453](https://github.com/snoyberg/http-client/pull/453)+ ## 0.7.3  * Added `withSocket` to `Network.HTTP.Client.Connection`.
Network/HTTP/Client/Request.hs view
@@ -63,7 +63,7 @@ import Control.Exception (throw, throwIO, IOException) import qualified Control.Exception as E import qualified Data.CaseInsensitive as CI-import qualified Data.ByteArray.Encoding as BAE+import qualified Data.ByteString.Base64 as B64  import Network.HTTP.Client.Body import Network.HTTP.Client.Types@@ -326,7 +326,7 @@     -> S8.ByteString -- ^ Password     -> S8.ByteString buildBasicAuth user passwd =-    S8.append "Basic " (BAE.convertToBase BAE.Base64 (S8.concat [ user, ":", passwd ]))+    S8.append "Basic " (B64.encode (S8.concat [ user, ":", passwd ]))  -- | Add a Basic Auth header (with the specified user name and password) to the -- given Request. Ignore error handling:
http-client.cabal view
@@ -1,5 +1,5 @@ name:                http-client-version:             0.7.3+version:             0.7.4 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@@ -49,7 +49,7 @@                      , transformers                      , deepseq           >= 1.3    && <1.5                      , case-insensitive  >= 1.0-                     , memory            >= 0.7+                     , base64-bytestring >= 1.0                      , cookie                      , exceptions        >= 0.4                      , array