From e73425adfe3dc05c8ffc3dce2a1418286971b929 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Fri, 15 Mar 2024 10:00:10 +0100 Subject: [PATCH] Fixed actions in the IDE not working because request body is consumed twice --- IHP/IDE/ToolServer.hs | 2 -- 1 file changed, 2 deletions(-) diff --git a/IHP/IDE/ToolServer.hs b/IHP/IDE/ToolServer.hs index dae1e7dfa..efddb8d21 100644 --- a/IHP/IDE/ToolServer.hs +++ b/IHP/IDE/ToolServer.hs @@ -84,8 +84,6 @@ startToolServer' port isDebugMode = do let toolServerApplication = ToolServerApplication { devServerContext = ?context } let application :: Wai.Application = \request respond -> do let ?applicationContext = applicationContext - requestContext <- ControllerSupport.createRequestContext applicationContext request respond - let ?context = requestContext frontControllerToWAIApp @ToolServerApplication @AutoRefresh.AutoRefreshWSApp (\app -> app) toolServerApplication staticApp request respond let openAppUrl = openUrl ("http://localhost:" <> tshow port <> "/")