Skip to content

Conversation

@greenhat616
Copy link

@greenhat616 greenhat616 commented Oct 15, 2025

This is pr is intented to keep the same behavior with https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/file_download.py#L1408

Background

In China mainland, we mostly use hf-mirror.com as mirror endpoint, which serves range stream without Content-Range header causing hf-hub Missing Header Error

Furthermore

Might we consider RANGE GET request failed and Content-Range is not available, and fallback to HEAD request?

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