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/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new aa8b9e52 fix(services/azblob): fix copy missing content-length (#2000)
aa8b9e52 is described below
commit aa8b9e52801947c1799a5efa7107c14e94ec300a
Author: Suyan <[email protected]>
AuthorDate: Sat Apr 15 01:09:16 2023 +0800
fix(services/azblob): fix copy missing content-length (#2000)
Signed-off-by: suyanhanx <[email protected]>
---
core/src/services/azblob/core.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/core/src/services/azblob/core.rs b/core/src/services/azblob/core.rs
index a396e096..78aac286 100644
--- a/core/src/services/azblob/core.rs
+++ b/core/src/services/azblob/core.rs
@@ -235,6 +235,7 @@ impl AzblobCore {
let mut req = Request::put(&target)
.header(X_MS_COPY_SOURCE, source)
+ .header(CONTENT_LENGTH, 0)
.body(AsyncBody::Empty)
.map_err(new_request_build_error)?;