From 5f0dcf9e1cf1bcf01864d16d0bcd543856d8f385 Mon Sep 17 00:00:00 2001 From: tu6ge Date: Thu, 26 Oct 2023 11:09:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=89=93=E4=B8=8D=E5=BC=80=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closed #27 --- src/file.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/file.rs b/src/file.rs index b094e2a..a703535 100644 --- a/src/file.rs +++ b/src/file.rs @@ -159,10 +159,10 @@ where .builder_with_header(Method::GET, url, canonicalized, list)? .send_adjust_error() .await? - .text() + .bytes() .await?; - Ok(content.into_bytes()) + Ok(content.to_vec()) } /// # 从 OSS 中删除文件 @@ -530,10 +530,10 @@ where .builder_with_header(Method::GET, url, canonicalized, list)? .send_adjust_error() .await? - .text() + .bytes() .await?; - Ok(content.into_bytes()) + Ok(content.to_vec()) } /// # 删除 OSS 上的文件 @@ -901,8 +901,8 @@ pub mod blocking { Ok(self .builder_with_header(Method::GET, url, canonicalized, headers)? .send_adjust_error()? - .text()? - .into_bytes()) + .bytes()? + .to_vec()) } /// # 删除 OSS 上的文件