From eac6546aed3326768d5827b6dbb0b339fa646660 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 15 Mar 2024 11:07:30 -0700 Subject: [PATCH] fix upload --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 404e3a6..b31e8e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -241,7 +241,7 @@ async fn upload_list(cookie:String,group:Option,asset_id_file_map:AssetIDFi } } - let body=tokio::fs::read_to_string(file).await?; + let body=tokio::fs::read(file).await?; let mut resp=client.post(url.clone()) .header("Cookie",cookie) .body(body.clone())