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
Unknown Object (File)
Mon, Apr 21, 9:17 PM
Unknown Object (File)
Mon, Apr 21, 4:46 PM
Unknown Object (File)
Mon, Apr 21, 3:53 PM
Unknown Object (File)
Sat, Apr 19, 11:36 PM
Unknown Object (File)
Apr 18 2025, 5:38 PM
Unknown Object (File)
Apr 14 2025, 11:40 PM
Unknown Object (File)
Apr 7 2025, 12:11 PM
Unknown Object (File)
Apr 1 2025, 3:11 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable