Skip to content

Commit

Permalink
Merge pull request #22 from AOEpeople/bugfix/content-cutted
Browse files Browse the repository at this point in the history
re-calculate content length
  • Loading branch information
hacksch authored Mar 18, 2024
2 parents 8295182 + 63907a0 commit 765065b
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 765065b

Please sign in to comment.