req 2.0.0 → 2.0.1
raw patch · 3 files changed
+5/−8 lines, 3 filesdep ~time
Dependency ranges changed: time
Files
- CHANGELOG.md +4/−0
- httpbin-tests/Network/HTTP/ReqSpec.hs +0/−7
- req.cabal +1/−1
CHANGELOG.md view
@@ -1,3 +1,7 @@+## Req 2.0.1++* Fixed the `httpbin` tests (they changed something on the server again).+ ## Req 2.0.0 * Got rid of `data-default-class` dependency, now we export
httpbin-tests/Network/HTTP/ReqSpec.hs view
@@ -67,7 +67,6 @@ stripFunnyHeaders (responseBody r) `shouldBe` object [ "headers" .= object [ "Accept-Encoding" .= ("gzip" :: Text)- , "Connection" .= ("close" :: Text) , "Foo" .= ("bar" :: Text) , "Baz" .= ("quux" :: Text) , "Host" .= ("httpbin.org" :: Text) ] ]@@ -82,7 +81,6 @@ , "url" .= ("https://httpbin.org/get" :: Text) , "headers" .= object [ "Accept-Encoding" .= ("gzip" :: Text)- , "Connection" .= ("close" :: Text) , "Host" .= ("httpbin.org" :: Text) ] ] responseHeader r "Content-Type" `shouldBe` return "application/json" responseStatusCode r `shouldBe` 200@@ -101,7 +99,6 @@ , "headers" .= object [ "Content-Type" .= ("application/json; charset=utf-8" :: Text) , "Accept-Encoding" .= ("gzip" :: Text)- , "Connection" .= ("close" :: Text) , "Host" .= ("httpbin.org" :: Text) , "Content-Length" .= show (T.length reflected) ] , "files" .= emptyObject@@ -125,7 +122,6 @@ , "headers" .= object [ "Content-Type" .= T.decodeUtf8 contentType , "Accept-Encoding" .= ("gzip" :: Text)- , "Connection" .= ("close" :: Text) , "Host" .= ("httpbin.org" :: Text) , "Content-Length" .= ("242" :: Text) ]@@ -151,7 +147,6 @@ , "url" .= ("https://httpbin.org/patch" :: Text) , "headers" .= object [ "Accept-Encoding" .= ("gzip" :: Text)- , "Connection" .= ("close" :: Text) , "Host" .= ("httpbin.org" :: Text) , "Content-Length" .= show (T.length contents) ] , "files" .= emptyObject@@ -174,7 +169,6 @@ , "headers" .= object [ "Content-Type" .= ("application/x-www-form-urlencoded" :: Text) , "Accept-Encoding" .= ("gzip" :: Text)- , "Connection" .= ("close" :: Text) , "Host" .= ("httpbin.org" :: Text) , "Content-Length" .= ("18" :: Text) ] , "files" .= emptyObject@@ -352,7 +346,6 @@ f value = value hs = [ "Content-Type" , "Accept-Encoding"- , "Connection" , "Host" , "Content-Length" , "Foo"
req.cabal view
@@ -1,5 +1,5 @@ name: req-version: 2.0.0+version: 2.0.1 cabal-version: 1.18 tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.3 license: BSD3