http-proxy 0.1.0.2 → 0.1.0.3
raw patch · 4 files changed
+4/−8 lines, 4 filesdep ~http-clientdep ~http-conduitPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: http-client, http-conduit
API changes (from Hackage documentation)
Files
- Network/HTTP/Proxy.hs +0/−1
- Test/Request.hs +0/−3
- Test/testsuite.hs +1/−1
- http-proxy.cabal +3/−3
Network/HTTP/Proxy.hs view
@@ -171,7 +171,6 @@ Wai.KnownLength l -> HC.requestBodySourceIO (fromIntegral l) (sourceRequestBody mwreq) , HC.decompress = const True- , HC.checkStatus = \_ _ _ -> Nothing } handle (respond . errorResponse) $ HC.withResponse hreq mgr $ \res -> do
Test/Request.hs view
@@ -66,9 +66,6 @@ return $ req { HC.method = if HC.method req /= method then method else HC.method req , HC.requestBody = fromMaybe (HC.requestBody req) mbody- -- In this test program we want to pass error pages back to the test- -- function so the error output can be compared.- , HC.checkStatus = \ _ _ _ -> Nothing }
Test/testsuite.hs view
@@ -147,7 +147,7 @@ -- Getting a TlsException shows that we have successfully upgraded -- from HTTP to HTTPS. Its not possible to ignore this failure -- because its made by the http-conduit inside the proxy.- BS.take 12 (resultBS result) `shouldBe` "TlsException"+ BS.take 13 (resultBS result) `shouldBe` "HttpException" it "Can provide a proxy Response." $ withTestProxy proxySettingsProxyResponse $ \ testProxyPort -> do req <- addTestProxy testProxyPort <$> mkGetRequest Http "/whatever"
http-proxy.cabal view
@@ -1,5 +1,5 @@ Name: http-proxy-Version: 0.1.0.2+Version: 0.1.0.3 License: BSD3 License-file: LICENSE Author: Michael Snoyman, Erik de Castro Lopo@@ -34,8 +34,8 @@ , case-insensitive >= 1.2 , conduit >= 1.2 , conduit-extra >= 1.1- , http-client >= 0.4 && < 0.5- , http-conduit >= 2.1.7 && < 2.2+ , http-client >= 0.5 && < 0.6+ , http-conduit >= 2.2 && < 2.3 , http-types >= 0.8 , mtl >= 2.1 , network >= 2.6