From: mertsunacoglu Date: Thu, 3 Jul 2025 14:10:10 +0000 (+0200) Subject: fix: Swift API conditional write if_none_match X-Git-Tag: v21.0.0~50^2~38^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e74694a3a0d2048d5491f5c3d60944a89f8e6a42;p=ceph.git fix: Swift API conditional write if_none_match Signed-off-by: mertsunacoglu Fixes: https://tracker.ceph.com/issues/68185 --- 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;