From e2d0cb79bd38d263034da9fd6bd26d3fce94ae6c Mon Sep 17 00:00:00 2001 From: p11 Date: Mon, 6 May 2024 00:00:57 +0200 Subject: [PATCH] Added audio replies --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 1d8b531..5efffaa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -329,6 +329,7 @@ fn handle_connection( "png" | "tiff" | "gif" | "jpeg" => { reply_binary(stream, &relative_path, "image", &ending, path) } + "mp3" | "wav" => reply_binary(stream, &relative_path, "audio", &ending, path), _ => fail(stream), }; return;