diff options
author | MichaelSnoyman <> | 2021-01-13 04:21:00 (GMT) |
---|---|---|
committer | hdiff <hdiff@hdiff.luite.com> | 2021-01-13 04:21:00 (GMT) |
commit | 9a05a48fd4e3d72d7d9cb29df2958d1c50ae79bc (patch) | |
tree | be9585550ce58a2f6529e4fdbb197a087a43e851 | |
parent | 120c857aee1ec3d869483bde9789659070329cbd (diff) |
-rw-r--r-- | ChangeLog.md | 4 | ||||
-rw-r--r-- | Network/HTTP/Client/Request.hs | 4 | ||||
-rw-r--r-- | http-client.cabal | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog.md b/ChangeLog.md index 78fb0b8..a09b980 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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`. diff --git a/Network/HTTP/Client/Request.hs b/Network/HTTP/Client/Request.hs index afe2e54..59af287 100644 --- a/Network/HTTP/Client/Request.hs +++ b/Network/HTTP/Client/Request.hs @@ -63,7 +63,7 @@ import Network.URI (URI (..), URIAuth (..), parseURI, relativeTo, escapeURIStrin 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 @@ buildBasicAuth :: -> 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: diff --git a/http-client.cabal b/http-client.cabal index 0b8cf36..2f539bd 100644 --- a/http-client.cabal +++ b/http-client.cabal @@ -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 @@ library , transformers , deepseq >= 1.3 && <1.5 , case-insensitive >= 1.0 - , memory >= 0.7 + , base64-bytestring >= 1.0 , cookie , exceptions >= 0.4 , array |