Skip to content

Commit

Permalink
added content length header to BinaryFileResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond authored and fabpot committed Oct 30, 2013
1 parent 0211c38 commit 2b8029e
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -218,6 +218,7 @@ public function prepare(Request $request)

$this->setStatusCode(206);
$this->headers->set('Content-Range', sprintf('bytes %s-%s/%s', $start, $end, $fileSize));
$this->headers->set('Content-Length', $end - $start + 1);
}
}

Expand Down

0 comments on commit 2b8029e

Please sign in to comment.