warp 3.0.5.1 → 3.0.5.2
raw patch · 3 files changed
+12/−1 lines, 3 filesdep ~basedep ~network
Dependency ranges changed: base, network
Files
- ChangeLog.md +4/−0
- Network/Wai/Handler/Warp/Run.hs +7/−0
- warp.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 3.0.5.2++* [Pass the Request to settingsOnException handlers when available. #326](https://github.com/yesodweb/wai/pull/326)+ ## 3.0.5 Support for PROXY protocol, such as used by Amazon ELB TCP. This is useful
Network/Wai/Handler/Warp/Run.hs view
@@ -339,6 +339,13 @@ recvSendLoop addr istatus fromClient = do (req', mremainingRef, idxhdr) <- recvRequest settings conn ii addr fromClient let req = req' { isSecure = isSecure' }+ processRequest addr istatus fromClient req mremainingRef idxhdr+ `catch` \e -> do+ -- Call the user-supplied exception handlers, passing the request.+ sendErrorResponse addr istatus e+ onE settings (Just req) e++ processRequest addr istatus fromClient req mremainingRef idxhdr = do -- Let the application run for as long as it wants T.pause th
warp.cabal view
@@ -1,5 +1,5 @@ Name: warp-Version: 3.0.5.1+Version: 3.0.5.2 Synopsis: A fast, light-weight web server for WAI applications. License: MIT License-file: LICENSE