@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Chris Bolt and committed by
epriestley
0bd8374c 0e3f4a08

+1
+1
src/aphront/response/AphrontFileResponse.php
··· 43 43 public function getHeaders() { 44 44 $headers = array( 45 45 array('Content-Type', $this->getMimeType()), 46 + array('Content-Length', strlen($this->content)), 46 47 ); 47 48 48 49 if (strlen($this->getDownload())) {