Page MenuHomePhabricator

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

Authored by epriestley on Apr 5 2017, 1:53 PM.
Tags
None
Referenced Files
F17857134: D17624.diff
Sun, Jul 27, 6:08 PM
Unknown Object (File)
May 29 2025, 9:14 AM
Unknown Object (File)
May 25 2025, 12:01 PM
Unknown Object (File)
May 25 2025, 10:27 AM
Unknown Object (File)
Apr 21 2025, 9:17 PM
Unknown Object (File)
Apr 21 2025, 4:46 PM
Unknown Object (File)
Apr 21 2025, 3:53 PM
Unknown Object (File)
Apr 19 2025, 11:36 PM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Branch
files14
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16318
Build 21695: Run Core Tests
Build 21694: arc lint + arc unit