Added audio replies
This commit is contained in:
parent
6fa0e14469
commit
e2d0cb79bd
@ -329,6 +329,7 @@ fn handle_connection(
|
|||||||
"png" | "tiff" | "gif" | "jpeg" => {
|
"png" | "tiff" | "gif" | "jpeg" => {
|
||||||
reply_binary(stream, &relative_path, "image", &ending, path)
|
reply_binary(stream, &relative_path, "image", &ending, path)
|
||||||
}
|
}
|
||||||
|
"mp3" | "wav" => reply_binary(stream, &relative_path, "audio", &ending, path),
|
||||||
_ => fail(stream),
|
_ => fail(stream),
|
||||||
};
|
};
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user