From 0a60079a3f07271833fd10e668cb3a76338d21f8 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Mon, 15 Jul 2024 11:49:55 +0200 Subject: [PATCH] feat(handle_file_request): add TODO to infer the content type --- server/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main.rs b/server/src/main.rs index 793c02f..c1d0c91 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -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) {