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
Serve a static file with 206 Partial Content status #276
Comments
Currently there's no built-in way to do this |
I just ran into this myself, if you serve for instance an .mp4 from the "public" file then clients end up having to download the entire file before playing it, apparently since it doesn't advertise partial content headers... |
I experience the same thing. Bummer |
For anyone wondering, this is the error I receive while trying to stream something:
|
@denysvitali I'm not sure if that's the same issue FWIW... |
This is now implemented in master via #299 |
Working great, thanks everybody! |
Wonderful, even though I'm not sure it is fully-spec compliant (I didn't added the part of multiple ranges), it would be good if somebody can fully review it 👍 |
As far as I understand there's no built-in way to do so. Should I fork and modify
static_file_handler.cr
for this specific use-case in conformity with the status spec?The text was updated successfully, but these errors were encountered: