add hash check

This commit is contained in:
2023-06-10 12:38:21 +02:00
parent f60555a442
commit 872bad1b25
4 changed files with 197 additions and 35 deletions

View File

@@ -9,7 +9,7 @@ pub fn get_body(url: &str) -> Vec<u8> {
res
}
pub fn _get_body_string(url: &str) -> String {
pub fn get_body_string(url: &str) -> String {
String::from_utf8(get_body(url)).unwrap()
}