Skip to content

Commit

Permalink
re-calculate content length
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Tepper committed Mar 18, 2024
1 parent 8295182 commit 63907a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Middleware/ContentPostProcAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$this->setPageObject($GLOBALS['TSFE']);
$this->scrapeAndReplace();

$header['Content-Length'] = strlen($this->page->getPageObject()->content);
$response = new HtmlResponse($this->page->getPageObject()->content, $status, $header);
} catch (Exception $exception) {
$this->logger
Expand Down

0 comments on commit 63907a0

Please sign in to comment.