Skip to content

Commit

Permalink
Use Content-Length: 0 if no content is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 29, 2018
1 parent 208795c commit 0d79243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/php/web/frontend/View.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0d79243

Please sign in to comment.