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, Sep 2, 9:40 AM
Unknown Object (File)
Fri, Aug 30, 10:32 AM
Unknown Object (File)
Mon, Aug 26, 3:31 AM
Unknown Object (File)
Aug 18 2024, 2:56 PM
Unknown Object (File)
Aug 17 2024, 4:39 PM
Unknown Object (File)
Aug 15 2024, 1:15 PM
Unknown Object (File)
Aug 9 2024, 11:25 AM
Unknown Object (File)
Aug 3 2024, 7:57 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