render
render copied to clipboard
Remove `range-parser` dependency
R2 API can process range requests now, it seems. We can remove the range-parser dependency and directly pass the header instead.
It looks like the functionality to pass request headers to R2GetOptions is not documented outside of changelogs... nor does it actually work.
✘ [ERROR] Uncaught (in promise) Error: get: We encountered an internal error. Please try again. (10001)
As far as I can tell this bug is acknowledged but has existed for a while now without a fix. So this issue would be blocked waiting for that being fixed in future.
This should be fixed now. Let me know if you encounter any more issues surrounding this functionality.