变更
This commit is contained in:
@@ -19,7 +19,7 @@ class StreamResponse extends Response
|
|||||||
{
|
{
|
||||||
$body = $this->getBody();
|
$body = $this->getBody();
|
||||||
$total = ceil($this->limit / $body->getSize());
|
$total = ceil($this->limit / $body->getSize());
|
||||||
|
$response->header('Content-Length', [$body->getSize()]);
|
||||||
for ($i = 0; $i < $total; $i++) {
|
for ($i = 0; $i < $total; $i++) {
|
||||||
$body->seek($i);
|
$body->seek($i);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user