Stream song #164

Merged
kdeng00 merged 11 commits from stream_song into v0.2 2025-07-27 14:20:42 -04:00
Showing only changes of commit 805ab2bfcd - Show all commits
+2 -2
View File
@@ -1036,7 +1036,7 @@ pub mod endpoint {
Err(_) => return Err((axum::http::StatusCode::INTERNAL_SERVER_ERROR, "Could not read file")),
};
let mime = mime_guess::from_path(&path).first_or_octet_stream();
let mime = mime_guess::from_path(path).first_or_octet_stream();
let stream = tokio_util::io::ReaderStream::new(file);
let rep = axum::response::Response::builder()
@@ -1049,7 +1049,7 @@ pub mod endpoint {
Ok(rep)
}
Err(_err) => {
return Err((axum::http::StatusCode::INTERNAL_SERVER_ERROR, "Could not find file"));
Err((axum::http::StatusCode::INTERNAL_SERVER_ERROR, "Could not find file"))
}
}
}