mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Add Content-Length header to Aphront file responses.
Summary: Provide a Content-Length header so that browsers can estimate time remaining for file downloads. Test Plan: Tested on our local phabricator install. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D6107
This commit is contained in:
parent
0e3f4a088f
commit
0bd8374c63
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ final class AphrontFileResponse extends AphrontResponse {
|
|||
public function getHeaders() {
|
||||
$headers = array(
|
||||
array('Content-Type', $this->getMimeType()),
|
||||
array('Content-Length', strlen($this->content)),
|
||||
);
|
||||
|
||||
if (strlen($this->getDownload())) {
|
||||
|
|
Loading…
Reference in a new issue