feat(handle_file_request): add TODO to infer the content type

This commit is contained in:
kalmenn 2024-07-15 11:49:55 +02:00
parent bbb2e2c8ea
commit 0a60079a3f
Signed by: kalmenn
GPG key ID: F500055C44BC3834

View file

@ -78,7 +78,7 @@ pub async fn handle_file_request(
)));
if let Ok(response) = hyper::Response::builder()
.header("Content-Type", "audio/mpeg")
.header("Content-Type", "audio/mpeg") // TODO: Infer from filetype
// .header("Accept-Ranges", "bytes") // TODO: handle range requests
.body(body)
{