update Rust

This commit is contained in:
2024-02-07 20:38:16 +08:00
parent 5fa62351f2
commit 95b4b8b947
7 changed files with 29 additions and 53 deletions

View File

@ -48,7 +48,7 @@ pub async fn fetch(
url: String,
headers: Option<HashMap<String, String>>,
input_data: Option<Vec<u8>>,
) -> reqwest::Result<RustHttpResponse> {
) -> anyhow::Result<RustHttpResponse> {
let mut req = _mix_header(HTTP_CLIENT.request(method, url), headers);
if input_data.is_some() {
req = req.body(input_data.unwrap());