From e74694a3a0d2048d5491f5c3d60944a89f8e6a42 Mon Sep 17 00:00:00 2001 From: mertsunacoglu Date: Thu, 3 Jul 2025 16:10:10 +0200 Subject: [PATCH] fix: Swift API conditional write if_none_match Signed-off-by: mertsunacoglu Fixes: https://tracker.ceph.com/issues/68185 --- src/rgw/rgw_rest_swift.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index 18b96aadd4cc..30687486fae6 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -1030,6 +1030,8 @@ int RGWPutObj_ObjStore_SWIFT::get_params(optional_yield y) } supplied_etag = s->info.env->get("HTTP_ETAG"); + if_match = s->info.env->get("HTTP_IF_MATCH"); + if_nomatch = s->info.env->get("HTTP_IF_NONE_MATCH"); if (!s->generic_attrs.count(RGW_ATTR_CONTENT_TYPE)) { ldpp_dout(this, 5) << "content type wasn't provided, trying to guess" << dendl; -- 2.47.3