Skip to content

Commit e74694a

Browse files
committed
fix: Swift API conditional write if_none_match
Signed-off-by: mertsunacoglu <[email protected]> Fixes: https://tracker.ceph.com/issues/68185
1 parent e8977b3 commit e74694a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rgw/rgw_rest_swift.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,8 @@ int RGWPutObj_ObjStore_SWIFT::get_params(optional_yield y)
10301030
}
10311031

10321032
supplied_etag = s->info.env->get("HTTP_ETAG");
1033+
if_match = s->info.env->get("HTTP_IF_MATCH");
1034+
if_nomatch = s->info.env->get("HTTP_IF_NONE_MATCH");
10331035

10341036
if (!s->generic_attrs.count(RGW_ATTR_CONTENT_TYPE)) {
10351037
ldpp_dout(this, 5) << "content type wasn't provided, trying to guess" << dendl;

0 commit comments

Comments
 (0)