-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
byte range issue #47
Comments
Thanks for the bug report, @iowelinux . According to byte range RFC:
This means that the last byte of your file must be |
Nginx implements new byte range RFC, which allows out-of-range end position. See the corresponding commit and the corresponding RFC:
I'll implement the same in fasthttp |
Fixed. |
Hi,
Seems like an issue with byte range requests.
E.g.
File size: 210720491 bytes
When I send a request with the header "Range: bytes=95644624-" fasthttp handles it correctly.
However if we'll modify the header to "Range: bytes=95644624-210720491" (from 95644624 to the last byte of the file) it drops to 416 http error because it can't handle the byte range.
cannot parse byte range "bytes=97851544-210720491" for path="/some_file.dat": invalid byte range
For instance I've just checked Nginx and it handles the same query correctly.
The text was updated successfully, but these errors were encountered: