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
F14045491: D17624.id42388.diff
Wed, Nov 13, 5:15 AM
F14039669: D17624.id42391.diff
Mon, Nov 11, 6:08 AM
F14037937: D17624.id42391.diff
Sun, Nov 10, 8:19 PM
F14037478: D17624.diff
Sun, Nov 10, 4:18 PM
F14037309: D17624.diff
Sun, Nov 10, 3:05 PM
F14017797: D17624.id42391.diff
Mon, Nov 4, 11:01 PM
F14009035: D17624.id42391.diff
Wed, Oct 30, 8:42 AM
F14005864: D17624.id42391.diff
Sun, Oct 27, 9:04 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