Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 557 - Assume client is requesting whole file if no range specified #558

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

bbpennel
Copy link
Contributor

@bbpennel bbpennel commented Mar 5, 2024

#557

If no range is specified for the Range header, then assume the whole file is being requested by overriding the range value to "0-". This prevents a error that we get frequently in our logs when clients provide the "Range: bytes=" header on their download requests.

@samvera/hydra-head

@cjcolvar
Copy link
Member

cjcolvar commented Mar 6, 2024

Thanks for the clear writeup of the issue and this PR! It looks like the build is broken on an unrelated issue I think I saw on another samvera repo. I can resolve this in a separate PR but it might be a little while. Is getting this fix in urgent for you?

@bbpennel
Copy link
Contributor Author

bbpennel commented Mar 6, 2024

No its not urgent, we have a local override which implements the same fix in the mean time.

@cjcolvar cjcolvar merged commit 0c21d16 into main Oct 1, 2024
9 checks passed
@cjcolvar cjcolvar deleted the hydra-head-557 branch October 1, 2024 15:19
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.

2 participants