From 0d792436527b1d0f3783615d3bf3e60da8300649 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sun, 29 Apr 2018 18:46:17 +0200 Subject: [PATCH] Use `Content-Length: 0` if no content is sent --- src/main/php/web/frontend/View.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/php/web/frontend/View.class.php b/src/main/php/web/frontend/View.class.php index 7f5907c..8b012de 100755 --- a/src/main/php/web/frontend/View.class.php +++ b/src/main/php/web/frontend/View.class.php @@ -96,6 +96,7 @@ public function transfer($req, $res, $base) { } if (null === $this->context) { + $res->header('Content-Length', 0); $res->flush(); } else { $this->context['base']= $base;