mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
PR #923 routed handleRangeRequest through appendObjectHeaders so 206 partial-content responses would pick up stored headers and response-* overrides. That also pulled in appendChecksumHeaders, which emits obj.getChecksum() — the whole-object checksum — onto partial responses. SDKs that validate the checksum against the received body then fail, e.g. a `bytes=4-7` GET returns the full-object CRC64NVME and the AWS CLI reports: Expected checksum CRSFynAYcw4= did not match calculated checksum: LQYlQwQYKmA= Real S3 does not return whole-object checksum headers on ranged responses. Add an includeChecksum flag to appendObjectHeaders (defaults true for the existing GET/HEAD callers) and pass false from handleRangeRequest. The override + restored-header improvements from #923 are unaffected. Reported by @dwhjames on #923.