forked from StrafesNET/asset-tool
fix upload
This commit is contained in:
parent
c43ed400c9
commit
eac6546aed
@ -241,7 +241,7 @@ async fn upload_list(cookie:String,group:Option<u64>,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())
|
||||
|
Loading…
Reference in New Issue
Block a user