From 334710e92c5419a9fc0418250c5fb25f4e6f6241 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 3 May 2018 18:25:57 +0200 Subject: [PATCH] Added middleware which injects the content-length header in the response if not present --- config/autoload/middleware-pipeline.global.php | 1 + 1 file changed, 1 insertion(+) diff --git a/config/autoload/middleware-pipeline.global.php b/config/autoload/middleware-pipeline.global.php index afdd78ef..90587cd3 100644 --- a/config/autoload/middleware-pipeline.global.php +++ b/config/autoload/middleware-pipeline.global.php @@ -16,6 +16,7 @@ return [ 'pre-routing' => [ 'middleware' => [ ErrorHandler::class, + Expressive\Helper\ContentLengthMiddleware::class, LocaleMiddleware::class, ], 'priority' => 11,