Skip to content

Commit 1e51b1c

Browse files
authored
Merge pull request ceph#64341 from mertsunacoglu/wip-swift-conditional-write
fix: Swift API conditional write if_match, if_none_match
2 parents 273f420 + e74694a commit 1e51b1c

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)