diff --git a/servant-server/src/Servant/Server/Internal/RoutingApplication.hs b/servant-server/src/Servant/Server/Internal/RoutingApplication.hs index ec6fc1e6..5389dd53 100644 --- a/servant-server/src/Servant/Server/Internal/RoutingApplication.hs +++ b/servant-server/src/Servant/Server/Internal/RoutingApplication.hs @@ -257,7 +257,7 @@ runDelayed Delayed{..} env req = do a <- authD b <- bodyD liftIO (writeIORef cleanupRef $ cleanupD b) - DelayedIO $ \ req -> return (serverD c a b req) + DelayedIO $ \ r -> return (serverD c a b r) ) req fmap (routeRes,) $ readIORef cleanupRef