Missing content-length header on uploaded files #77
Labels
No Label
blocked
bug
dependencies
duplicate
enhancement
help wanted
invalid
javascript
question
scope:accounts
scope:download
scope:performance
scope:upload
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kieran/void.cat#77
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm still having problems with #68. Eg NVK's profile still broken: https://gleasonator.com/@e88a691e98d9987c964521dff60025f60700378a4879180dcbbb4a5027850411@mostr.pub
I think it's due to not having a
content-length
header on GET/HEAD response for uploaded files. I commented out some code that checks for it, and I thought the problem was resolved. But I uncommented it, and a day later the cache expired and it broke again. So I believecontent-length
is also required.I've thought about whether I can rework my media proxy to not care about this header. But I think it makes sense to check the
content-length
. Then people can enforce a filesize limit on remote files (Nostr clients can do this, too, and probably should), and if the file exceeds the limit while streaming it you can disconnect. So, it would be good to have either way, and most servers do provide it.Current behavior:
Desired outcome: