This is an automated email from the ASF dual-hosted git repository. suyanhanx pushed a commit to branch fix-azblob-copy in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit b47d1c6ecbe6e5c60e9c593b25914d1bbf4f076d Author: suyanhanx <[email protected]> AuthorDate: Sat Apr 15 01:01:31 2023 +0800 fix(services/azblob): fix copy missing content-length 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)?;
