fix: the If-None-Match error handling in the put_object method when t… (#1034)

Co-authored-by: 0xdx2 <xuedamon2@gmail.com>
Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
shiro.lee
2025-12-08 15:36:31 +08:00
committed by GitHub
parent 619cc69512
commit 552e95e368

View File

@@ -2819,7 +2819,7 @@ impl S3 for FS {
}
}
Err(err) => {
if !is_err_object_not_found(&err) || !is_err_version_not_found(&err) {
if !is_err_object_not_found(&err) && !is_err_version_not_found(&err) {
return Err(ApiError::from(err).into());
}