feat(handle_file_request): add TODO to infer the content type
This commit is contained in:
parent
bbb2e2c8ea
commit
0a60079a3f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue