This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 7c96bd2b3 feat(services/aliyun_drive): Add operation in http context 
(#6063)
7c96bd2b3 is described below

commit 7c96bd2b31a7d635f06b603ff3fe577412d49911
Author: Jorge Hermo <jorgehermogonza...@gmail.com>
AuthorDate: Sun Apr 27 08:42:44 2025 +0200

    feat(services/aliyun_drive): Add operation in http context (#6063)
---
 core/src/services/aliyun_drive/backend.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/services/aliyun_drive/backend.rs 
b/core/src/services/aliyun_drive/backend.rs
index c6abed478..2d8c10d8e 100644
--- a/core/src/services/aliyun_drive/backend.rs
+++ b/core/src/services/aliyun_drive/backend.rs
@@ -370,7 +370,9 @@ impl Access for AliyunDriveBackend {
             
serde_json::from_reader(res.reader()).map_err(new_json_serialize_error)?;
 
         let download_url = self.core.get_download_url(&file.file_id).await?;
+        // TODO: this request should be done in core.rs and not here
         let req = Request::get(&download_url)
+            .extension(Operation::Read)
             .header(header::RANGE, args.range().to_header())
             .body(Buffer::new())
             .map_err(new_request_build_error)?;

Reply via email to