Skip to content

Indicate range request support with Accept-Ranges header#104

Open
cmsetzer wants to merge 1 commit intosource-cooperative:mainfrom
cmsetzer:feature/add-header-accept-ranges
Open

Indicate range request support with Accept-Ranges header#104
cmsetzer wants to merge 1 commit intosource-cooperative:mainfrom
cmsetzer:feature/add-header-accept-ranges

Conversation

@cmsetzer
Copy link

@cmsetzer cmsetzer commented Feb 4, 2026

What I'm changing

This appends the Accept-Ranges header to GET and HEAD responses for objects, indicating support for HTTP range requests. Since some clients look for this header, it should improve use of range requests.

Addresses #103.

How I did it

get_object and head_object responses now include Accept-Ranges, as well as Access-Control-Expose-Headers for CORS safelisting.

How to test it

When running the proxy:

  • Perform a HEAD or GET request for an object
  • Check the response headers; Accept-Ranges: bytes and Access-Control-Expose-Headers: Accept-Ranges should both be present

PR Checklist

  • This PR has no breaking changes.
  • I have updated or added new tests to cover the changes in this PR.
  • This PR affects the Source Cooperative Frontend & API,
    and I have opened issue/PR #XXX to track the change.

Related Issues

[Proposed Feature] Indicate range request support with Accept-Ranges header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant