mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
Per the S3 API, six query parameters override response headers on GetObject and HeadObject (presigned URLs are the canonical use case): response-content-type, response-content-language, response-expires, response-cache-control, response-content-disposition, response-content-encoding. Floci previously ignored them and emitted only the values stored on the object at upload time. Adds the six @QueryParam bindings, threads them through getObject, headObject, and handleRangeRequest, and lets them win over stored values when present. Empty query values are normalized to null to match AWS behavior of ignoring empty response-* overrides. Routing range responses through appendObjectHeaders also closes a pre-existing gap where 206 responses dropped stored Content-Disposition / Cache-Control / Content-Encoding and version-id headers. Closes #916