lukeed / sirv

An optimized middleware & CLI application for serving static files~!
MIT License
1.07k stars 58 forks source link

Range suffix requests return prefixes instead #155

Open taralx opened 1 year ago

taralx commented 1 year ago

https://datatracker.ietf.org/doc/html/rfc9110#rule.suffix-range

tl;dr: If you send a header Range: bytes=-8 it should return the last 8 bytes of the file, but instead it returns the first 9 bytes as if Range: bytes=0-8 had been passed.