Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Jan 8, 2025
1 parent 822f81f commit b786420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/services/cos/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ impl Access for CosBackend {
write_with_content_type: true,
write_with_cache_control: true,
write_with_content_disposition: true,
// TODO: set this to false while version has been enabled.
write_with_if_not_exists: true,
// Cos doesn't support forbid overwrite while version has been enabled.
write_with_if_not_exists: !self.core.enable_versioning,
// The min multipart size of COS is 1 MiB.
//
// ref: <https://www.tencentcloud.com/document/product/436/14112>
Expand Down

0 comments on commit b786420

Please sign in to comment.