Added audio replies

This commit is contained in:
p11 2024-05-06 00:00:57 +02:00
parent 6fa0e14469
commit e2d0cb79bd

View File

@ -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;