t2bot / matrix-media-repo

Highly configurable multi-domain media repository for Matrix.

Home Page:https://docs.t2bot.io/matrix-media-repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Range` requests not properly handled anymore

turt2live opened this issue · comments

There's a bit of chicken and egg going on here too. We process the Range request after the request has happened, but not before, meaning things like the download pipeline are always told -1, -1.

Problem is, most range requests from browsers contain a start but no end. We can't ask for more bytes than are available, so we need to know the possible response size before we submit the pipeline call. We don't know what the response size is until the pipeline runs though.

Somehow this needs to work.