-
Notifications
You must be signed in to change notification settings - Fork 705
Open
Description
Current Behavior
I'm already aware of #2771 as well as rust-lang/cargo#8647 but I think this issue is somewhat different.
Trying to resume download of already fully retrieved crate tarball:
- Returns code 206
content-rangeheader is completely wrong (iecontent-range: bytes 278076-278075/278076start of range is after end of range!)
Expected Behavior
If file is fully retrieved and requested range is past end of target file then I'd expect response 416 Requested Range Not Satisfiable
Steps To Reproduce
- Download crate tarball:
$ curl -L -o syn.tgz https://crates.io/api/v1/crates/syn/2.0.87/download # equivalent to wget -O syn.tgz <url>- Try to resume download ie to make sure previous download was not interrupted with
Range:starting at the current size of syn.tgz:
$ curl -vL -r `du -b syn.tgz | cut -f1`- -o syn.tgz https://crates.io/api/v1/crates/syn/2.0.87/download # equivalent of wget -c -O syn.tgz <url>Environment
N/A
Anything else?
I do realize it's an issue in AWS but sadly I don't have any point of contact there so I'm hoping you can help out :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.