Skip to content

Commit

Permalink
Changed addContentLengthHeader setting's default value to true in onl…
Browse files Browse the repository at this point in the history
…y production. Setting it to true in dev mode was leading to dump statements not rendering the whole page.
  • Loading branch information
rotimi committed May 29, 2024
1 parent 6dc9e3c commit 851fa7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/app-settings-dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
/////////////////////////////////////
Expand Down

0 comments on commit 851fa7c

Please sign in to comment.