packages feed

http-client 0.4.21 → 0.4.22

raw patch · 3 files changed

+6/−2 lines, 3 files

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.4.22++* ProxyConnectException now returns Right HttpException. [#155](https://github.com/snoyberg/http-client/pull/155)+ ## 0.4.21  * Support `no_proxy` environment variable. [#140](https://github.com/snoyberg/http-client/issues/140) [#145](https://github.com/snoyberg/http-client/pull/145)
Network/HTTP/Client/Manager.hs view
@@ -443,7 +443,7 @@                     parse conn = do                         sh@(StatusHeaders status _ _) <- parseStatusHeaders conn Nothing Nothing                         unless (status == status200) $-                            throwIO $ ProxyConnectException ultHost ultPort $ Left $ S8.pack $ show sh+                            throwIO $ ProxyConnectException ultHost ultPort $ Right $ StatusCodeException status [] (CJ [])                  in mTlsProxyConnection m connstr parse (S8.unpack ultHost)  -- | Get the proxy settings from the @Request@ itself.
http-client.cabal view
@@ -1,5 +1,5 @@ name:                http-client-version:             0.4.21+version:             0.4.22 synopsis:            An HTTP client engine, intended as a base layer for more user-friendly packages. 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