ByteBaker opened a new pull request, #7884: URL: https://github.com/apache/opendal/pull/7884
# Which issue does this PR close? Closes #7821. # Rationale for this change Some S3-compatible services require `Content-Length` to be present on `CopyObject` requests, even when the request body is empty. OpenDAL already sends an empty body for S3 copy, so this makes the request explicit by setting `Content-Length: 0`. # What changes are included in this PR? - Set `Content-Length: 0` when building S3 `CopyObject` requests. - Split CopyObject request construction into `s3_copy_object_request`, matching existing request-builder patterns. - Add a unit test that verifies the CopyObject request method, headers, and empty body. # Are there any user-facing changes? No API changes. This improves compatibility with S3-compatible services. # AI Usage Statement I used OpenAI Codex to help implement and test this change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
