Skip to content
Snippets Groups Projects
Commit ab2b8653 authored by Ted Bowman's avatar Ted Bowman
Browse files

fix batch response

parent 089c5bfc
No related branches found
No related tags found
No related merge requests found
...@@ -307,7 +307,9 @@ protected function setExpiresNoCache(Response $response) { ...@@ -307,7 +307,9 @@ protected function setExpiresNoCache(Response $response) {
*/ */
public function setContentLengthHeader(ResponseEvent $event): void { public function setContentLengthHeader(ResponseEvent $event): void {
$response = $event->getResponse(); $response = $event->getResponse();
if ($response instanceof StreamedResponse) { // @todo The batch system will break unless we check ob_get_level(). See
// https://drupal.org/i/3392196.
if ($response instanceof StreamedResponse || ob_get_level()) {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment