From c3ffbd5f5f521c04b2b03be483ce1e896b0c778d Mon Sep 17 00:00:00 2001 From: rotimi Date: Tue, 28 May 2024 19:02:53 -0600 Subject: [PATCH] Changed addContentLengthHeader setting's default value to true in only production. Setting it to true in dev mode was leading to dump statements not rendering the whole page. --- config/app-settings-dist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app-settings-dist.php b/config/app-settings-dist.php index afc4e5b..84755b8 100644 --- a/config/app-settings-dist.php +++ b/config/app-settings-dist.php @@ -33,7 +33,7 @@ 'displayErrorDetails' => (sMVC_GetCurrentAppEnvironment() !== SMVC_APP_ENV_PRODUCTION), // should be always false in production 'logErrors' => true, 'logErrorDetails' => true, - 'addContentLengthHeader' => true, + 'addContentLengthHeader' => (sMVC_GetCurrentAppEnvironment() === SMVC_APP_ENV_PRODUCTION), // should be always true in production ///////////////////////////////////// // End of Slim PHP Related Settings /////////////////////////////////////