wai-extra 3.0.29.1 → 3.0.29.2
raw patch · 3 files changed
+12/−6 lines, 3 files
Files
- ChangeLog.md +4/−0
- Network/Wai/EventSource.hs +7/−5
- wai-extra.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for wai-extra +## 3.0.29.2++* flush SSE headers early [#804](https://github.com/yesodweb/wai/pull/804)+ ## 3.0.29.1 * Fix `Network.Wai.Test.request` always sending an empty request body [#794](https://github.com/yesodweb/wai/pull/794)
Network/Wai/EventSource.hs view
@@ -37,11 +37,13 @@ sendResponse $ responseStream status200 [(hContentType, "text/event-stream")]- $ \sendChunk flush -> fix $ \loop -> do- se <- src- case eventToBuilder se of- Nothing -> return ()- Just b -> sendChunk b >> flush >> loop+ $ \sendChunk flush -> do+ flush+ fix $ \loop -> do+ se <- src+ case eventToBuilder se of+ Nothing -> return ()+ Just b -> sendChunk b >> flush >> loop -- | Make a new WAI EventSource application with a handler that emits events. --
wai-extra.cabal view
@@ -1,5 +1,5 @@ Name: wai-extra-Version: 3.0.29.1+Version: 3.0.29.2 Synopsis: Provides some basic WAI handlers and middleware. description: Provides basic WAI handler and middleware functionality: