on ef79e28 help sign in
3 files changed+1−11
since splitsnapshots
unifiedsplit
wai-extra/ChangeLog.md−4 wai-extra/Network/Wai/Test.hs−6 wai-extra/wai-extra.cabal+1−1
wai-extra/ChangeLog.md−4
@@ -1,9 +1,5 @@
11# Changelog for wai-extra
22
3−## 3.0.29.1
4−
5−* Fix `Network.Wai.Test.request` always sending an empty request body [#794](https://github.com/yesodweb/wai/pull/794)
6−
73## 3.0.29
84
95* Export `Network.Wai.EventSource.eventStreamAppRaw` [#786](https://github.com/yesodweb/wai/pull/786)
wai-extra/Network/Wai/Test.hs−6
@@ -99,10 +99,6 @@ runSession session app = ST.evalStateT (runReaderT session app) initState
9999data SRequest = SRequest
100100 { simpleRequest :: Request
101101 , simpleRequestBody :: L.ByteString
102− -- ^ Request body that will override the one set in 'simpleRequest'.
103− --
104− -- This is usually simpler than setting the body as a stateful IO-action
105− -- in 'simpleRequest'.
106102 }
107103data SResponse = SResponse
108104 { simpleStatus :: H.Status
@@ -178,8 +174,6 @@ extractSetCookieFromSResponse response = do
178174 (Map.fromList [(Cookie.setCookieName c, c) | c <- newClientCookies ]))
179175 return response
180176
181−-- | Similar to 'request', but allows setting the request body as a plain
182−-- 'L.ByteString'.
183177srequest :: SRequest -> Session SResponse
184178srequest (SRequest req bod) = do
185179 refChunks <- liftIO $ newIORef $ L.toChunks bod
wai-extra/wai-extra.cabal+1−1
@@ -1,5 +1,5 @@
11Name: wai-extra
2−Version: 3.0.29.1
2+Version: 3.0.29
33Synopsis: Provides some basic WAI handlers and middleware.
44description:
55 Provides basic WAI handler and middleware functionality: