Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Apr 15, 2021
1 parent fe136a6 commit 855ccef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Network/HTTP/Proxy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module Network.HTTP.Proxy
)
where

import Blaze.ByteString.Builder (fromByteString)
import Data.ByteString.Builder (byteString)
import Control.Concurrent.Async (race_)
import Control.Exception -- (SomeException, catch, toException)
import Data.ByteString.Char8 (ByteString)
Expand Down Expand Up @@ -197,7 +197,7 @@ doUpstreamRequest settings mgr respond mwreq
}
handle (respond . errorResponse) $
HC.withResponse hreq mgr $ \res -> do
let body = mapOutput (Chunk . fromByteString) . HCC.bodyReaderSource $ HC.responseBody res
let body = mapOutput (Chunk . byteString) . HCC.bodyReaderSource $ HC.responseBody res
headers = (CI.mk "X-Via-Proxy", "yes") : filter dropResponseHeader (HC.responseHeaders res)
respond $ responseSource (HC.responseStatus res) headers body
where
Expand Down
17 changes: 8 additions & 9 deletions http-proxy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,25 @@ library

build-depends: base >= 4 && < 5
, async == 2.2.*
, blaze-builder == 0.4.*
, bytestring == 0.10.*
, bytestring-lexing == 0.5.*
, case-insensitive == 1.2.*
, bytestring >= 0.10.8
, bytestring-lexing >= 0.5
, case-insensitive >= 1.2
, conduit == 1.3.*
, conduit-extra == 1.3.*
, http-client == 0.6.*
, http-client == 0.7.*
, http-conduit == 2.3.*
, http-types == 0.12.*
, mtl == 2.2.*
, network == 2.8.*
, network >= 3.1
, resourcet == 1.2.*
, streaming-commons == 0.2.*
, tls == 1.4.*
, tls == 1.5.*
, text == 1.2.*
, transformers == 0.5.*
, wai == 3.2.*
, wai-conduit == 3.0.*
, warp == 3.2.*
, warp-tls == 3.2.*
, warp == 3.3.*
, warp-tls == 3.3.*



Expand Down

0 comments on commit 855ccef

Please sign in to comment.