Fix content length when using response body callbacks

pull/572/head
Belle Aerni 10 months ago
parent d92c65f8ae
commit 3659a76106

@ -432,15 +432,15 @@ class Response
}
}
if (!headers_sent()) {
$this->sendHeaders(); // @codeCoverageIgnore
}
// Only for the v3 output buffering.
if ($this->v2_output_buffering === false) {
$this->processResponseCallbacks();
}
if (!headers_sent()) {
$this->sendHeaders(); // @codeCoverageIgnore
}
echo $this->body;
$this->sent = true;

Loading…
Cancel
Save