@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.

Correct an issue where the wrong "Content-Length" was set for partial content responses

Summary: Ref T8266. Although we compute this correctly above, we ignored it when actually setting the header. Use the computed value to set the "Content-Length" header. This is consistent with the spec/documentation.

Test Plan: Before, some audio (like `rain.mp3`) was pretty spotty about loading in Safari. It now loads consistently for me locally.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T8266

Differential Revision: https://secure.phabricator.com/D17624

+1 -1
+1 -1
src/aphront/response/AphrontFileResponse.php
··· 105 105 } 106 106 107 107 if (!$this->shouldCompressResponse()) { 108 - $headers[] = array('Content-Length', $this->getContentLength()); 108 + $headers[] = array('Content-Length', $content_len); 109 109 } 110 110 111 111 if (strlen($this->getDownload())) {