diff --git a/servant-server/src/Servant/Server/Internal/RoutingApplication.hs b/servant-server/src/Servant/Server/Internal/RoutingApplication.hs index d2ec3ba1..0117a222 100644 --- a/servant-server/src/Servant/Server/Internal/RoutingApplication.hs +++ b/servant-server/src/Servant/Server/Internal/RoutingApplication.hs @@ -256,7 +256,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