From 552e95e368bd5d18c31bed62718acce7063c65f2 Mon Sep 17 00:00:00 2001 From: "shiro.lee" <69624924+shiroleeee@users.noreply.github.com> Date: Mon, 8 Dec 2025 15:36:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20the=20If-None-Match=20error=20handling?= =?UTF-8?q?=20in=20the=20put=5Fobject=20method=20when=20t=E2=80=A6=20(#103?= =?UTF-8?q?4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 0xdx2 Co-authored-by: loverustfs --- rustfs/src/storage/ecfs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustfs/src/storage/ecfs.rs b/rustfs/src/storage/ecfs.rs index 29a78816..1874f87c 100644 --- a/rustfs/src/storage/ecfs.rs +++ b/rustfs/src/storage/ecfs.rs @@ -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()); }