szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.71k stars 172 forks source link

Awnser Range requests and stream files downloads #277

Closed dvdsk closed 3 weeks ago

dvdsk commented 4 weeks ago

Uses NamedFile from actix_files for unencrypted files instead of reading them into memory and setting them as body.

Note the content_type is set by NamedFile now. The code for it is about identical to what was previously there.

fixes #276